OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Krieg on 28 Dec 2009, 15:57:41

Title: JetRangerSilent???
Post 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:
Code: [Select]
"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)?
Title: Re: JetRangerSilent???
Post by: Walter_E_Kurtz on 28 Dec 2009, 16:08:13
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"
Title: Re: JetRangerSilent???
Post by: Krieg on 28 Dec 2009, 16:21:22
Didn't work. Nothing showed up. I tired replacing JetRangerSilent with heat73. That did not show up either.
Title: Re: JetRangerSilent???
Post by: Walter_E_Kurtz on 28 Dec 2009, 17:10:40
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"
Title: Re: JetRangerSilent???
Post by: Krieg on 28 Dec 2009, 17:12:51
Maybe the "_" made the difference?  ;)

Edit: Tired without it, nothing appeared.
Title: Re: JetRangerSilent???
Post by: bedges on 28 Dec 2009, 17:35:14
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.
Title: Re: JetRangerSilent???
Post by: Krieg on 28 Dec 2009, 17:41:15
Thanks for reply, Bedges, but it did not work.
I tried
Code: [Select]
_helo reveal playerand vice versa. Still no helicopters appearing.
Title: Re: JetRangerSilent???
Post by: bedges on 28 Dec 2009, 19:01:51
See attached.
Title: Re: JetRangerSilent???
Post by: Krieg on 28 Dec 2009, 20:17:17
Thanks, Bedges!
It is fun little chopper, except the fact that it spins out of control every time you try to use it. :laugh: