Page 1 of 2

[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.

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

Posted: Fri Mar 22, 2013 12:17 pm
by head
Kefirz wrote:Wouldn't this work with A2 also?
Where is this posted ... kefriz..

Re: [SCRIPT] How to rid helo pilots of common sense and dece

Posted: Fri Mar 22, 2013 2:48 pm
by tryteyker
You showed us an A3 video, so it's easy to get confused, heado :P

Re: [SCRIPT] How to rid helo pilots of common sense and dece

Posted: Fri Mar 22, 2013 4:31 pm
by Ferrard Carson
About the only problem I see with it is that it takes forever for the helicopter to lazily drift down into the LZ under fire the whole way, presumably because "careless" is making it so nonchalant in its movements. Nice work though!

~ Ferrard

Re: [SCRIPT] How to rid helo pilots of common sense and dece

Posted: Fri Mar 22, 2013 4:35 pm
by Kefirz
I browse forums by viewing unread posts only.
So yes I didn't notice that it was under A2 and made a snap judgement based on the video you posted.

Head, was my previous reply that bad, was it really?

Re: [SCRIPT] How to rid helo pilots of common sense and dece

Posted: Fri Mar 22, 2013 6:10 pm
by Anvilfolk
Has anyone checked whether careless needs to be there? Of all the options set, it seems the least likely to be necessary :)