Jump to content
Sign in to follow this  
gopherman

Can't get this bit of code to work...

Recommended Posts

Usage / Classnames:

The unit can simulate in-game SAM guidance radar capability. To use in a mission, add a trigger to the units to model destruction of the guidance radar. Since the in-game SA6 units do not depend on a guidance radar unit, a trigger may be added to the SA6 units that checks if the radar is alive. When the radar is destroyed, the trigger sets the SA6 combat mode to "BLUE" (aka "never fire"). For example with a 1S91 unit named "radar1":

From the page you linked. That code you posted goes into the On Act. field of a trigger.

Now... I've never seen !?alive, so let me know what happens. :P

Share this post


Link to post
Share on other sites

Make a trigger with the condition of:

!alive radar1

Then the onAct of:

unitSA6 setCombatMode "BLUE";

It will basically turn off the weapon (your SA6 vehicle named 'unitSA6') when it's radar (your 1S91 named 'radar1') is destroyed.

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  

×