Jump to content
Sign in to follow this  
kittycat

How to activate something

Recommended Posts

Hi

I want to know how to activate something if lets say 2 tanks are killed and a special unit is on my team

Share this post


Link to post
Share on other sites

The condition of the trigger would be:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">!(alive tank1) AND !(alive tank2) AND ((group specialunitname) == (group player))<span id='postcolor'>

I think that will work, not tested though.

RED

Share this post


Link to post
Share on other sites

Separate the condition commands (like not alive(tank1)) using AND or &&

Share this post


Link to post
Share on other sites

Is that the correct writing? I am getting sick of playing 40+ mins just to get a condition work. Can I get a exact script that will work? I am getting crazy with this shit

Share this post


Link to post
Share on other sites
Guest jacobaby

test the condition early in the mission editor, write a smaller test mission if needs be.

Reds script will work just fine

Share this post


Link to post
Share on other sites

this works too.

Condition

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">NOT (alive tank1) AND NOT (Alive Tank2)<span id='postcolor'>

Where Tank1 and Tank2 are the tanks.

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  

×