Forum Jump :

Author Message


Posts: 19
Rank:


Level: Member

Country: au
Location:
Occupation:
Age:
In-game name: Brandon_steinlein@hotmail.com

 
#1 Posted at 2013-03-21 04:35        
     
hey guys i've been having trouble finding a way to force the ai to use flashlights at night so i came up with this little simple and easy script to put into the init field hope it works for you guys!

this addPrimaryWeaponItem "acc_flashlight";

this unassignItem "NVGoggles";

this removeItem "NVGoggles";

this enablegunlights "forceOn"

PS this is assuming the unit has a main weapon.


Author Message


Posts: 6
Rank:


Level: Member

Country: ve
Location:
Occupation:
Age: 32
In-game name:

 
#2 Posted at 2013-11-09 15:39        
     
Well, the NV Googles part didnt worked for me so I made a little research and found that you need to specify the unit faction in order to unequip the NV Googles. If anyone ahve this problem add this to the init section:

this unassignItem "NVGoggles_OPFOR"; this removeItem "NVGoggles_OPFOR";

The flashlight works great, thanks a lot!


Advertisement


Author Message


Posts: 2
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2018-09-11 23:42        
     
It doesn't work for me, it keeps saying 'missing ;' when I press enter or OK. Help!