Home   Help Search Login Register  

Author Topic: problem with heli waypoints  (Read 502 times)

0 Members and 2 Guests are viewing this topic.

ronin-thc

  • Guest
problem with heli waypoints
« on: 27 Feb 2003, 13:13:21 »
Hi,

in my mission I want to have the following situation:

A Chopper should pick you and your team up and take you somewhere. I did it that way, that you can call the chopper using your radio, an unvisible H is set to your position (setpos) and the chopper is getting that position (setWPpos). The problem is, that the chopper just fly to that position, but do not land. It flies back to the point where it started.

So I tried it with chopper land "GET IN", but then it lands and take off immediately to return to it's starting point. I thought my last chance were to give the chopper a commandstop. Now he lands and waits, but do not move where he should, because he will never be ready.

I tried it then to give the chopper a doMove to the place he should move. That works, but when he arrives, the pilot and gunner and everybody in the chopper get out. I think that it happens because of the doMove/commandmove command. I would prefer to use setWPpos, but I don't know what I have to do, to avoid that the chopper returns to his base.

I hope that was enough information to describe the problem, now you are my last hope!

Thanks,
Ronin

Ace

  • Guest
Re:problem with heli waypoints
« Reply #1 on: 27 Feb 2003, 13:36:06 »
Use SetWPpos but instead of chopper land "get in" use chopper land "land".

Set up a triger so that when the chopper lands it stays stil chopper lockwp true and then set up another trigger to detect when all necessary units are in the chopper it takes off.

EI

Code: [Select]
?ap in chopper and ap2 in chopper and ap3 in chopper

chopper lockwp false

P.S make sure you use the lockwp command and not the stop command. Otherwise the choper will stop at its postion but if you lockwp it will travel to the end of the waypoint (the helipad) and then stop.


« Last Edit: 27 Feb 2003, 13:48:23 by Ace »

ronin-thc

  • Guest
Re:problem with heli waypoints
« Reply #2 on: 28 Feb 2003, 13:03:42 »
Thanks a lot, that was exactly what I needed. Everything works just fine...  ;D