Page 1 of 1

[Script] How to rid helo pilots of common sense and deceny.

Posted: Thu Mar 21, 2013 3:40 pm
by head
Vid





////////////////////////////// HELO INIT \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

Code: Select all

{     _x disableai "AUTOTARGET";      _x setCombatMode "BLUE";      _x setBehaviour "CARELESS";      _x allowFleeing 0; } foreach crew this;

//////////// 100 radius wp move with nul = execVM "scriptname.sqf" \\\\\\\\\\\\\\\\\\\\\\\\\\\\\


Code: Select all

while { ( (alive helo ) && !(unitReady helo ) ) } do
{
       sleep 1;
};
hint "LANDING";
if (alive helo ) then
{
       helo land "LAND";
};

waituntil { isTouchingGround  helo};
hint "GOGOGO";
{
doGetOut  _x;
unassignVehicle _x;
} foreach assignedCargo helo;
waituntil { count (assignedCargo helo) == 0 };
helo land "NONE";
helo move (getpos away);



Re: How to rid helo pilots of common sense and deceny.

Posted: Thu Mar 21, 2013 11:27 pm
by EBass
Well this'll be bloody useful. Its an absolute bastard to get them to land under fire! Good work

Re: How to rid helo pilots of common sense and deceny.

Posted: Fri Mar 22, 2013 10:13 am
by Anvilfolk
I think I had tried the disableAI but not the allowFleeing thing :D I'll give this a go soonish :)

Re: How to rid helo pilots of common sense and deceny.

Posted: Fri Mar 22, 2013 10:50 am
by Kefirz
Wouldn't this work with A2 also?

Re: How to rid helo pilots of common sense and deceny.

Posted: Fri Mar 22, 2013 11:03 am
by wolfenswan
might also be worth looking at this script for extended functionality.