Jump to content
Sign in to follow this  
noewon

Turn on/off an object

Recommended Posts

I want to use a laser pointer for a visual effect, how do I set to be on/off based on triggers? 

I've found the other posts about turning streetlights on or off, but it's not quite the same. 
if I use: object setHit [part, damage, useEffects]

What's the part for the object "IR Laser Pointer"?

Share this post


Link to post
Share on other sites

I assume you mean to have units turn on/off their weapon mounted IR lasers.

 

To get a unit to turn on the IR laser, the unit must be in combat mode.

 

To turn on the IR laser

NameOfUnit enableIRlasers true;

 

To turn off the IR laser

NameOfUnit enableIRlasers false;

Share this post


Link to post
Share on other sites

Nope. Just have the IR laser sitting somewhere as in a laser defense system.

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  

×