Jump to content
Sign in to follow this  
sgt_hawkins

Nvg on and off

Recommended Posts

I have a sequence where a blast occurs and disrupts nvgs.. All i need is the command line to force a players nvg on and off to simulate disruption.

Share this post


Link to post
Share on other sites

Two ways you could go;

1) overload the NVGs by creating as strong and brief light source at the site of the explosion by creating a marker then using

light = "#lightpoint" createVehicle (getMarkerPos "ILspawn");

2) temporarily remove the NVGs from the unit's gear and then readding it back after a set time eg;

unitName removeWeapon weaponName;
sleep (whatever value you want);
unitName addWeapon weaponName;

Share this post


Link to post
Share on other sites

To force them on:

player action ["NVGoggles"]

To force them off:

player removeWeapon "NVGoggles"; player addWeapon "NVGoggles"

Untested.

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  

×