Jump to content
Sign in to follow this  
Birkoff

Triggers - Need more info

Recommended Posts

Regarding any trigger, trigger-by-area, radio trigger etc.

1) Lets assume player1+2+3 drives a vehicle into an area-trigger.

How do I then with the trigger pass on the vehicle or any of the players to a external script for further processing.

Say I wanna area where the car will break down without hurting the people inside.

Problem is, ANY car must be allowed to use so no naming of vehicles.

2) Lets assume the area trigger does ON ACTIVATION: * exec "script.sqs"

How do I then pass on whatever units that moved into the trigger field to the script, not just "this" as that seem to be "first person" only ?

Share this post


Link to post
Share on other sites

thislist exec "script.sqs"

should do the trick. thislist returns a list of all units that triggered the respective trigger.

You can also use

List triggername.

Hope this helps,

Spinor

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  

×