Home   Help Search Login Register  

Author Topic: Help, please: Heli evacuation needed  (Read 615 times)

0 Members and 1 Guest are viewing this topic.

Skybird

  • Guest
Help, please: Heli evacuation needed
« on: 03 Dec 2003, 17:16:25 »
Hi,

I'm new in to forum, but have been a passive observer for longer. I am using GOTY v1.91. I have searched the forum for a solution of my problem, but if it is there, I missed it. I know only little about scripting and such, but so far I was able to take care of all my needs :) Until now:

I design a real big-in-size mission for which I need to have a helicopter that can be called via radio command, to find my position all by it's own, pick me and my teammates up and bring us to a save harbor.

I have tried with the script I found on page 240 of the Editor Uber Manual by ? Merciless Creations, but i don'T get the thing to work. The chopper is coming, but then stays stationary above my head.

Situation:
I have a Blackhawk, named „heli01"
I have an active player named „me"
I have a script named „extraction.sqs". It reads like this (copypasted from the manual):

_x=getpos vehicle me select 0
_y=getpos vehicle me select 1
_z=getpos vehicle me select 2
heli move [_x,_y,_z]
@unitready
heli01 land „land"

I have an invisible H named „landing"

I have an invisible H named „parking"

I have a trigger for radio channel alpha. It's activation line reads: „me exec „extraction.sqs"   "

I have a global trigger, reading „ me in heli01" in the condition line and „heli domove getpos landing; heli01 flyinheight 30"


Fine. So far so good, the manual says. Testplay: I click onto Alpha in the radio display. An error message appears, saying something about a wrong value for unitready /#/. The chopper starts nevertheless, and comes to my position. But it does not land, it just stays overhead, and that's all.

I tried various approaches to this problem since last night, but failed.

Any help, please? Please, be precise/detailed in your answer, I really don‘ know more about scripting than what I needed so far. I lit the campfires, gave the vehicles unlimited fuel, equipped the ammo crates with some more stuff,and all my pride is having a helo waiting for me, fly me there, dropping me in an LZ and return to base all by it's own - and that's all I know about scripts :)

Thanks, Skybird

m21man

  • Guest
Re:Help, please: Heli evacuation needed
« Reply #1 on: 03 Dec 2003, 17:25:22 »
You might be looking for something like this. If you need any help with it, PM me.

Edit - I think that the download is in Post #8.
« Last Edit: 03 Dec 2003, 17:26:40 by m21man »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Help, please: Heli evacuation needed
« Reply #2 on: 03 Dec 2003, 18:26:41 »
When you get an error message it's always worth reading carefully.   They are not always helpful but often they tell you exactly what's going wrong, even if you don't understand it.    Post an error message exactly, if you possibly can - somebody else might know what it means.

The # indicates where in the code the error has occurred.
Plenty of reviewed ArmA missions for you to play

Skybird

  • Guest
Re:Help, please: Heli evacuation needed
« Reply #3 on: 03 Dec 2003, 18:49:22 »
Macguba,

it was >>>Error unitready/#/ invalid value expected<<<, if I remember correctly. I don't know the @unitready command so I don't know what the messages means that could be wrong.

m21man

pm is on it'S way.

Skybird

gundernak

  • Guest
Re:Help, please: Heli evacuation needed
« Reply #4 on: 03 Dec 2003, 22:17:23 »
after unitReady there must be a unitname - unoff com ref

@unitReady choppername

Skybird

  • Guest
Re:Help, please: Heli evacuation needed
« Reply #5 on: 04 Dec 2003, 02:09:12 »
Yeah - after close to 15 hours of fighting with scriptings and it's syntax I learned that just one hour ago :( But the problem remains , the bird hang in the air. anyway, I am using a different approach now, that works better. I also learned the hard way the last days that there are more than just one typo in this manual, unfortunately. For my purposes I don't need any more scripts. Feel good about that!

Skybird