OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Krieg on 28 Dec 2009, 15:57:41
-
I was sweeping through OFPEC OFP CfgVehicles and found chopper that I never seen before, JetRangerSilent.
(http://www.ofpec.com/COMREF/cfg_images/OFP/JetRangerSilent.jpg)
Tried createUnit-ing it to missionete, using following script:
"JetRangerSilent" createUnit [getMarkerPos "a", groupAlpha, loon1 = this, 0.6, "corporal"]
Placed marker, but chopper never appeared.
My questions are:
1) Is this chopper actual chopper, hoax, or just extremely small object?
2) What's wrong with my script (why chopper does not appear)?
-
I think it's a OH58 Kiowa (http://www.ofpec.com/COMREF/cfg_images/OFP/OH58.jpg) with some parts hidden (the radome and missile launchers).
You can't createUnit it if it's not configured to have an AI pilot. Try createVehicle (http://www.ofpec.com/COMREF/index.php?action=details&id=86&game=All) instead:
_helo = "JetRangerSilent" createVehicle getMarkerPos "a"
-
Didn't work. Nothing showed up. I tired replacing JetRangerSilent with heat73. That did not show up either.
-
Worked for me. It's a tiny, unflyable Remote Control model. Once it's created, you have to wait 20-30 seconds before you can get in. I used the following in a Radio Alpha trigger, with a marker named "spot":
helo = "JetRangerSilent" createVehicle getMarkerPos "spot"
-
Maybe the "_" made the difference? ;)
Edit: Tired without it, nothing appeared.
-
To solve the problem of created vehicles being inaccessible for several seconds, reveal (http://www.ofpec.com/COMREF/index.php?action=details&id=272&game=All) the vehicle to the player.
-
Thanks for reply, Bedges, but it did not work.
I tried
_helo reveal player
and vice versa. Still no helicopters appearing.
-
See attached.
-
Thanks, Bedges!
It is fun little chopper, except the fact that it spins out of control every time you try to use it. :laugh: