Jump to content
Sign in to follow this  
cry

Trigger in combination with Buildings/Objects

Recommended Posts

Hey Guys,

I´am constructing a MP Mission, where the player has to destroy some empty Cars (ZSU).

My Problem: how do I configure the cars like "KI Players", that the trigger is setting a Mission Target to "SUCEEDED", if the cars are destroyed.

I have no Problem with other KI Players (! (alive)+ Trigger), but I have no idea, how to solve this problem.

Hope you guys can help me.

Greetz

Share this post


Link to post
Share on other sites

If I understand you correctly, you want to have a trigger that detects when the ZSU is destroyed? It's just the same as if a player had been killed. Name your car something like zsu1 then:

Condition:

!alive zsu1

OnAct:

tskKillZSU setTaskState "SUCCEEDED";  taskhint ["Task Succeeded!\nGood job you destroyed the ZSU!", [0.600000,0.839215,0.466666,1], "taskDone"];

If there are multiple cars to destroy;

!alive zsu1 && !alive zsu2 && !alive zsu3

Share this post


Link to post
Share on other sites

Yes you did!

Thanks for the effort and tip, it´s working:)

Is this also possible with buildings?

Edited by Cry

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  

×