Jump to content
Sign in to follow this  
SAMstudios-3Dartist

Task fail if enemy leaves?

Recommended Posts

I making a mission there one of the task is to destroy 2 APC in a garage. (apc1 and apc2). I have managed to make the task be succeed if the two apc are destroyed. But I allso want the task to fail if these apc leave there area. Can anybody help?

Share this post


Link to post
Share on other sites

I think that you have to use a trigger with this on act:

not(apc1 in thislist) && not (apc2 in thislist);

But i'm new at scripting, so I don't know if it works.

Share this post


Link to post
Share on other sites

You have to set triggers activation to anybody.

Also you could set on act. !(apc1 in thislist) || !(apc2 in thislist);

on act:

not(apc1 in thislist) && not (apc2 in thislist);

That means that both apcs must leave area. Just change && operator to || operator, which means that if one or both apcs leave the trigger will set on.

Share this post


Link to post
Share on other sites

Need more help in another question. I want when a enemy ai named (boss) enter a trigger the task will be set to fail. How do i do that so only "boss" can activate the trigger.

Edited by Zsalheden

Share this post


Link to post
Share on other sites
Need more help in another question. I want when a enemy ai named (boss) enter a trigger the task will be set to fail. How do i do that so only "boss" can activate the trigger.

activation: anybody

present

condition: Boss in thislist

Share this post


Link to post
Share on other sites
activation: anybody

present

condition: Boss in thislist

OR just group the BOSS with the trigger. The selections under Activation will now change and you can select VEHICLE. The trigger will now only activate when BOSS is inside the trigger area.

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  

×