Jump to content
Sign in to follow this  
mostly

Enable Laser and start with NV Goggles on

Recommended Posts

I've got a squad of 4 men all with M4A1's that have the lasers fitted to the front.

How do I start the mission with all the lasers enabled without having to issue it as an order?

How do I start the mission with the player's NV goggles on?

Share this post


Link to post
Share on other sites

unit action ["NVGoggles", unit];

unit action ["IRLaserOn", unit];

Untested but I think it will work :)

Share this post


Link to post
Share on other sites

Those commands only work for human players. For AI you need to make it night and set them to Danger for both to be on.

Share this post


Link to post
Share on other sites

Still can't get it to work. Setting them to danger at night does nothing for me, and like Kylania says those commands only work for human players.

Share this post


Link to post
Share on other sites

Thanks Kylania. That works now, all the AI start with lasers on! Cool.

Thanks Andy 455, the NVgoggles action works but the "IRLaseron" action doesn't work for my player, any ideas?

Share this post


Link to post
Share on other sites

I'm having trouble automatically activating lasers for players. "IRLaserOn" doesn't seem to work, anyone know how it's done?

Share this post


Link to post
Share on other sites

You could try something with these

this EnableIRLasers true; (in a squad members init)

group this EnableIRLasers true; (in a squad leaders init)

and then maybe this setBehaviour aware; and/or this setCombatMode "red";

I am no expert though...and there is probably a better way of doing it but it works for me

Share this post


Link to post
Share on other sites

enableIRLasers works only for AI as it indirectly orders them to activate them much like doStop and others.

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  

×