How To Force AI Flashlights On | ArmA 3

Sdílet
Vložit
  • čas přidán 7. 09. 2024
  • Quick video guide on how to force AI to use flashlights mounted on their guns, instead of NVGs.
    ** Paste this code in the init of AI unit: **
    this unassignItem "NVGoggles"; this removeItem "NVGoggles"; this addPrimaryWeaponItem "acc_flashlight"; this enableGunLights "forceOn";
    ► Want to donate? PayPal donations accepted at: www.paypal.me/...
    This video is created using games from Bohemia Interactive.
    See www.bistudio.com for more information.

Komentáře • 16

  • @vereor6304
    @vereor6304 Před 3 lety +1

    Thank you so much! Thanks to your code, I was able to get it working. The game has been updated to make it easier I guess since I didn't have to put the "acc_flashlight" bit, but when I put "this enableGunLights "Force on", it worked

  • @campionpesate4647
    @campionpesate4647 Před 4 lety +2

    I discovered this script that adds flashlights to all soldiers (provided their weapons support a flashlight attachment". Also works when they are in safe mode
    {
    if (side _x == east) then
    {
    _x unassignItem "NVGoggles_OPFOR";
    _x unlinkItem "NVGoggles_OPFOR";
    _x addPrimaryWeaponItem "acc_flashlight";
    _x enablegunlights "forceOn";
    };
    } forEach (allUnits);

    • @campionpesate4647
      @campionpesate4647 Před 4 lety

      You might have to add the other nv goggles that they use... is it NVGoggles_Brown or something.

  • @XxG0D0FW4RZxX
    @XxG0D0FW4RZxX Před 8 lety +1

    Good tutorial, thanks!

  • @leonardo8461
    @leonardo8461 Před 3 lety

    What I discovered: if you are using mods maybe some attachments are not avayable for the weapon you are using, so you have to change the name of the flashlight... Instead of acc_flashlight for example mine was rhs_acc_2dpZenit (you can see it by equipping it in virtual arsenal)... Then the script remains the same

  • @ElWarrmex
    @ElWarrmex Před 8 lety +2

    Thanks!

  • @minghanlyu9478
    @minghanlyu9478 Před 4 lety

    I followed your instruction,it indicates that "Init: Invalid number inexpression"...

  • @emotionalsuccess
    @emotionalsuccess Před 7 lety +1

    Why dont my enemy AI units flashlights come on when they are in SAFE mode? Only when they switch to COMBAT mode?

    • @FrankieHustla
      @FrankieHustla  Před 7 lety +1

      This video should still be relevant and force the AI to always have their flashlights on, combat mode or not. The reason it is necessary is because the AI in ArmA 3 is programmed to only turn on their flashlights when engaging a target. Otherwise, they will not turn on their flashlights; for example, careless and safe modes will not utilize flashlights unless provoked (careless will not use flashlights).

    • @emotionalsuccess
      @emotionalsuccess Před 7 lety +3

      ArmaPhronk Many thanks for your reply! I have since discovered that enableGunlights "forceOn" does not work on AI soldiers from within an FSM I am using to spawn them and then control their movements. But for some reason, if I wait a few seconds until after I have spawned in the enemy AIs, and then execute enableGunlights "forceOn" from within a sqf script for all enemy units it works, even if they are just ambling along in "SAFE" mode! They will even then keep their light on when entering a sitting animation etc.. Its awesome as it can add so much atmosphere to a night scene. I can then instruct the AIs to turn their lights off again / on again depending on certain conditions, again via an overarching sqf script. Anyway, thanks again for your reply. Most appreciated. Yosarin, Far North QLD, Australia

    • @DieselDaddy5.9
      @DieselDaddy5.9 Před 7 lety

      Yosarin how do I turn my ir and flashlight on

    • @emotionalsuccess
      @emotionalsuccess Před 7 lety

      Once you are sure your AI unit is using a weapon with a flash-light, I ran the following line of code in a sqf script, 15seconds after I had created the AI unit using BIS_fnc_spawnGroup:
      _AIunit enableGunlights "forceOn";
      Doing it this way, the flash-light of the AI unit turned on even though the unit was in "SAFE" mode. It was also night time! (But I'm no your that the time of day should really have any effect) :)

    • @leonardo8461
      @leonardo8461 Před 3 lety

      @@emotionalsuccess I have this light problem on team leaders, the other unit will use flashlight, my guess is that units associated (in safe mode) to a flag, waypoint or in my case patrol , will have an interference with the script, I' ll try to make the script run as you said 15 seconds after the start of the match, hopefully first it will give them safemode and then turn on flashlight

  • @RastaNate420
    @RastaNate420 Před 9 lety +1

    How do I use my flashlight

    • @FrankieHustla
      @FrankieHustla  Před 9 lety

      +NathansGaming Channel Press the "L" key if you have a flashlight attached to your weapon

    • @RastaNate420
      @RastaNate420 Před 8 lety

      thx