Home   Help Search Login Register  

Author Topic: kmk and manual helo scripts  (Read 1662 times)

0 Members and 1 Guest are viewing this topic.

Offline antiutopian

  • Members
  • *
kmk and manual helo scripts
« on: 22 Feb 2007, 17:53:24 »
one is manual, and takes a very long time, but gets good results, the other is the kmk helo script from a long time ago:

THE INSERTION****************************************************
-Create a chopper , name it HELI1 , set its special to Flying

-Create a group , make yourself as the leader and make all the other "playable".

-In the init line of the group leader, put

Code: [Select]
TEAM1=group this; "_x moveincargo HELI1" foreach units TEAM1

This way, you have named your group TEAM1 and teleported the whole group in cargo of the chopper.

-Create , where you want the insertion point to occur an Empty -> Object -> invisibleH

-Create , where you want the chopper to go landing¦nbsp; after the TEAM1 has been inserted, another Empty -> Object -> invisibleH , name this object GOTHERE

-Create a MOVE waypoint for the chopper that arrive very near the insertion point (the first invisibleH)
In the On Activation part, type
 
Code: [Select]
HELI1 land "land"

this way, the chopper will land when it will reach the trigger (and the invisibleH is there to "help" the AI to land exactly where you want)

-Create a Trigger, in the line Condition, type
 
Code: [Select]
(getpos HELI1 select 2) < 1

and at the line On Activation, type (or better, select the following, press CRTL and C , then click on the line On Activation in OFP and press CTRL and V to copy/paste)
 
Code: [Select]
cmd="EJECT"; "_x action [cmd,HELI1]" foreach units TEAM1; "unassignVehicle _x" foreach units TEAM1; HELI1 domove getpos GOTHERE

this way, the trigger will activate when the altitude of the chopper will be inferior to 1 meter.
Then it will eject everyone from the chopper (the unassignvehicle is there to prevent any AI wanting to board the chopper again on his own)
After that, the chopper is ordered to move , without waypoint, to the position of the away invisibleH

-Finally create a trigger (the 2nd invisible H must be inside the trigger).
On the line On Activation, type
 
Code: [Select]
HELI1 land "land"

press F2 (or click on Group) and draw a line between the chopper HELI1 and this trigger, so the trigger will be activated ONLY if the chopper named HELI1 will come inside this trigger
Then it will land (again the invisibleH will help the AI to land exactly where you want).

Follow this step-by-step tutorial, it works, at least offline, as MP editing can be strange.

#script cut and attached in file - bedges
« Last Edit: 22 Feb 2007, 20:17:18 by bedges »

Offline antiutopian

  • Members
  • *
Re: kmk and manual helo scripts
« Reply #1 on: 24 Feb 2007, 00:32:19 »
attached is the readme to the kmk helo script and any further needed action texts.


Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re: kmk and manual helo scripts
« Reply #2 on: 26 Feb 2007, 12:58:48 »
antiutopian, you can use the Modify button in the top right corner of your post to edit it and new attachments.   Makes the thread easier to comprehend than having consecutive posts by the same author.   ;)
Plenty of reviewed ArmA missions for you to play