OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 456820 on 06 Apr 2005, 19:36:44

Title: create hovering black hawk
Post by: 456820 on 06 Apr 2005, 19:36:44
simply how can i create a hovering uh60 about 50 metres high named "uh60"
also have it setposed over a marker but in the sky
Title: Re:create hovering black hawk
Post by: Silencer on 06 Apr 2005, 20:23:54
uh60 FlyInHeight 50
Title: Re:create hovering black hawk
Post by: 456820 on 06 Apr 2005, 20:25:56
but i want to create the black hawk not set the vechiles height
so when the line in a script is activated it creates a black hawk on a marker but 50 meters in the air and also have it named uh60
Title: Re:create hovering black hawk
Post by: 456820 on 06 Apr 2005, 20:56:30
ive relised all i need to know is how to name a created vechile because i can do the createvechile thing but since i havent used a createvechile command before can someone refresh mt memory as well as what is the black hawk called will it be the uh60 to put in the createvechile line or something else
Title: Re:create hovering black hawk
Post by: Planck on 06 Apr 2005, 22:02:54
Something like:

"uh60" createvehicle getmarkerpos "nameofmarker"

You realise it will have no crew don't you?


Planck
Title: Re:create hovering black hawk
Post by: Silencer on 06 Apr 2005, 23:15:18
Maybe you could have it started at another postion, and setpos it to your marker
Title: Re:create hovering black hawk
Post by: 456820 on 07 Apr 2005, 09:11:39
Silencer i like your way so if i put a blackhawk 50metres hovering somewhere on the map and then use
the setpos command i forget that so can someone please tell me
thanks for all the help so far
Title: Re:create hovering black hawk
Post by: Blanco on 07 Apr 2005, 23:48:50
Place a gamelogic and name it

someheli setpos (getpos somegamelogic)
Title: Re:create hovering black hawk
Post by: 456820 on 08 Apr 2005, 18:59:05
perfect thanks blanco