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

Party-approved programming
User avatar
head
Posts: 133
Joined: Sun Jul 31, 2011 4:22 pm
Location: Sweeeden

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

Post 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);



EBass
Posts: 30
Joined: Tue Jan 17, 2012 1:46 pm

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

Post by EBass »

Well this'll be bloody useful. Its an absolute bastard to get them to land under fire! Good work

Anvilfolk
Posts: 119
Joined: Thu Jan 17, 2013 3:56 pm
Location: Portugal
Contact:

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

Post by Anvilfolk »

I think I had tried the disableAI but not the allowFleeing thing :D I'll give this a go soonish :)

User avatar
Kefirz
Posts: 440
Joined: Sun Mar 11, 2012 11:44 am

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

Post by Kefirz »

Wouldn't this work with A2 also?
''I am not going against tanks'' - Tryteyker, MAT gunner.
''Downboated so much, it's an u-boat now.'' - Boberro.
''Sorry, I meant hon hon hon baguette baguette Eiffel Tower'' - Mabbott

User avatar
wolfenswan
Posts: 1209
Joined: Wed May 25, 2011 4:59 pm

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

Post by wolfenswan »

might also be worth looking at this script for extended functionality.

User avatar
head
Posts: 133
Joined: Sun Jul 31, 2011 4:22 pm
Location: Sweeeden

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

Post by head »

Kefirz wrote:Wouldn't this work with A2 also?
Where is this posted ... kefriz..

tryteyker
Posts: 104
Joined: Wed Feb 20, 2013 9:17 pm
Location: Sweden / Germany (depends really)

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

Post by tryteyker »

You showed us an A3 video, so it's easy to get confused, heado :P

User avatar
Ferrard Carson
Posts: 565
Joined: Sun Aug 12, 2012 6:08 am

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

Post 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
"Take a boat in the air you don't love, she'll shake you off just as sure as the turnin' of the worlds. Love keeps her in the air when she oughta fall down, tells you she's hurtin' before she keels... makes her home."

User avatar
Kefirz
Posts: 440
Joined: Sun Mar 11, 2012 11:44 am

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

Post 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?
''I am not going against tanks'' - Tryteyker, MAT gunner.
''Downboated so much, it's an u-boat now.'' - Boberro.
''Sorry, I meant hon hon hon baguette baguette Eiffel Tower'' - Mabbott

Anvilfolk
Posts: 119
Joined: Thu Jan 17, 2013 3:56 pm
Location: Portugal
Contact:

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

Post by Anvilfolk »

Has anyone checked whether careless needs to be there? Of all the options set, it seems the least likely to be necessary :)

Post Reply