Jump to content
Sign in to follow this  
SA_Warthog

Forcing AI to use flashlights

Recommended Posts

I've read every thread that I could find on forcing AI to use their gun-mounted flashlights.

I've got it to work for a bit, then it won't work again. It seems to have worked in combat mode, moving from waypoint to waypoint. Other modes seem to not work.

This is the init line for my blufor rifleman

RemoveAllWeapons this; this AddWeapon "JWC_FL_M4A1_HWS_GL"; this AddMagazine "30Rnd_556x45_Stanag"; unitName enableGunLights true;

The weapon is from a weapon addon called JWC_Weapon_Flashlight_v1.1

If I take the AI's gun, or place the gun on myself, the gun works fine, as well as the flashlight. I'm not entirely sure what else to do.

Any tips or tricks to figuring this out? Night missions are my favorite, but they're becoming a drag if I can't make them use flashlights :(

Update: After doing more research, it appears that setting way points and making the units in combat is the way to go. They are using the flash lights while in combat mode, and on that path. The flashlights remain on while fighting as well. Would still like to find out a way to get the lights working in non-combat waypoints.

I tried putting combat waypoints very close to each other, then just putting a cycle waypoint. It seems to be working quite well for having the units stay in one position. They are moving around, i.e. Standing up, crouching, proning, and moving a few meters at max.

For vehicles to have their lights on I've been successful using the "Safe" waypoints. You can just make one waypoint, and have it end at the place you would like the vehicle to sit, or make several waypoints as safe for its route.

For infantry, I have to manually go into the init and do something along these lines

RemoveAllWeapons this;

this AddWeapon "JWC_FL_AK_107_kobra";

this AddMagazine ["30Rnd_545x39_AK",10];

unitName enableGunLights true;

to remove NVG's, and equip a weapon with a flashlight, give them ammunition, and then force them to use their gun lights. It makes it difficult to have a diverse squad (ie weaponry/roles) if I have to manually choose their weapons & equipment. Any tips or ideas are welcome!

Edited by SA_Warthog
Found new information

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  

×