Code to disable AI mod on logistics helos?

  1. 7 years ago

    I've been trying out VCOM AI 2.7 and really like it except for the craziness it does to logistics helos that are spawned in.

    I'm assuming you could use this event handler

    { Driver _x setVariable ...; } foreach (vehicles isKindOf "air');

    My question is...as I'm not a scripter...where would I put that code and do I need anything else?

    If I can disable the logistics helos from using VCOM, then the mod is usable with ALiVE

  2. If its anything like transport support, save the code below as a script and call it in the "Code" section on the module. That should disable VCOM from running any script/fsm on the units, in theory .....

    params ["_vehicle"];
    
    waitUntil {driver _vehicle != objNull};
    
    sleep 1;
    
    {
    	_x setVariable ["NOAI", 1, false];
    } forEach (crew _vehicle);
  3. There are a few more suggestions how to add this parameter and another idea just to prevent movent in the inits in the bi forums in the alive thread. None work reliably.

 

or Sign Up to reply!