Jump to content
Sign in to follow this  
cotabucky

Talk trigger conditions?

Recommended Posts

O.K ,i'm still very uneducated in the whole scripting\programming department of ARMA2 but i'm learning slowly.

These are some things I'm noticing.

When using "hint" in MP if you have triggers grouped to a player the player they are grouped to are the only ones that can see it online.

"Taskhint" helps with this.

Using gamelogic waypoints with the "hint" command synced to trigger eliminates this and makes them global.At least with conditions in trigger like "(vehicle player) in Thislist".Havnt tested everything with this.

One thing i know doesn't seem to work is mixing AND and OR in trigger conditions.

EXAMPLE ! alive obj1 and ! alive OBJ2 or ! alive dude and ! alive dude2

Triggers like this seem to fire on there own when half of the condition is met. I may be wrong and have some variable wrong in my conditions (not 100% sure).

One other wierd thing I found over and over was when I toyed with a condition like this. EXAMPLE "(vehicle player) in thislist OR player in thislist" in the condition field of the trigger.

In MP when one person goes through the trigger radius in gives the hint that I command it to but only to them(no grouping btw). The funny thing is when someone else goes through it the trigger repeats for them.The trigger is for fact not set to repeat but it does with "(vehicle player) in thislist OR player in thislist" in the condition field.

Does anybody have a good accurate referance for all the conditions to use for triggers and what doesn't work in MP and maybe shed some light on some of the mysteries I have encountered lately :) ?

I'm learning little by little and realize I am very ignorant to the facts of programming and scripting syntax and whatever :D

thanks

Share this post


Link to post
Share on other sites

O.K. no talk lol.At least anybody know a good referance for trigger conditions? Thanks

Share this post


Link to post
Share on other sites

One thing to remember is that a trigger is local and in mp it runs on each machine.

So if you have five players you would have five triggers one on each PC even though you only ever placed One.

! alive obj1 and ! alive OBJ2 or ! alive dude and ! alive dude2

This works as it should

!alive obj1 and !alive2 obj2 if both are dead it is true OR ! alive dude and ! alive dude2 are dead then this would be true

so if either two sets of units are dead the trigger will fire.

Edited by F2k Sel

Share this post


Link to post
Share on other sites
One thing to remember is that a trigger is local and in mp it runs on each machine.

So if you have five players you would have five triggers one on each PC even though you only ever placed One.

.

Thankyou.

looking at it this way helps a lot :) Does anybody have a list or referance of conditions?

One type I was going to do was when a number of civilians are dead a trigger trips.ive looked it up and can find it but I would think by now someone would have a list for referance of all the conditions that can be used in a trigger.Maybe I'm just looking in the wrong places.

Edited by cotabucky

Share this post


Link to post
Share on other sites

Thanks ,That can help once I know a little more.

I use the &&,and ,OR ! alive ,alive obj,etc,etc.

I will be using the greater < than and > lesser than in my next mission with civilian death count.

Its still kind of Greek to me but I can copy and paste as well as anybody :)

This was on that link too and something I need to learn more of "variables"

http://community.bistudio.com/wiki/Variables

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×