Alive spawned units enable ir pointers?

  1. 9 months ago

    Hey gang!

    Is it possible to have Alive spawned units enable ir pointers?

    I believe the command is ”unit enableirlasers true”, but how do I get that to run on all Blufor units spawned?

  2. Edited 9 months ago by SavageCDN

    Hi Easy,

    You'd need to do custom inits for those units - see here for more info:

    http://alivemod.com/wiki/index.php/Script_Snippets#Adding_Custom_Inits_to_Spawned_Units

    Something like this:

    private "_this";
    _this = _this select 0;
     
    if ((side _this == west) and (!isPlayer _this)) then {
       _this enableIRLasers true;
    };
  3. Great, thanks Savage!

 

or Sign Up to reply!