Home   Help Search Login Register  

Author Topic: Launching a plane?  (Read 615 times)

0 Members and 1 Guest are viewing this topic.

Offline Killzone

  • Members
  • *
  • War is the true Enemy
Launching a plane?
« on: 21 Mar 2003, 03:01:40 »
Hello People.

I was wondering if you can help me with a problem that is driving me mad.

I made a cheesy runway on the water using Bauelemente addon pieces. I have the runnway 3 feet above the water surface. I place the aircraft on the deck using the setpos command at a height of 4 feet.  I am using the script:

me = _this select 0
_timer = _this select 1
_pos = Getpos _me
#loop1
_me setpos _pos
? _time < _timer : goto "loop1"
Exit

----------------------------------------

[myplane, 12] exec "Takeoffscript.sqs"

12 = the amount of time to stay still
-----------------------------------------

So that I can take off quick. My problem is when I activate the trigger for this script the plane sinks down below the deck either falling into the water of blowing up inbetween the deck and the water.  How can I get the aircraft to stay where I put it even when I activate the trigger. It works fine if I drop the deck even with the water but that is not the point. I want it to work the other way.

Thanks in advance ;D
"Everyone dies so deal with it and move on"

                                                      ME

Offline Killzone

  • Members
  • *
  • War is the true Enemy
Re:Launching a plane?
« Reply #1 on: 22 Mar 2003, 06:56:56 »
Can no one help me? Have I finally stumped the ones on this site? Or is it my questions is 2 confusing? I will go with the 2nd one.

Let me make it simple.

I have a raised platform (Acting as a runway) out in the water. I have a plane on the platform. I used the setpos command: this setpos [getpos this select 0, getpos this select 1, (getpos this select 2) +4] for the plane Which works fine until I activate this trigger:

me = _this select 0
_timer = _this select 1
_pos = Getpos _me
#loop1
_me setpos _pos
? _time < _timer : goto "loop1"
Exit

----------------------------------------

[myplane, 12] exec "Takeoffscript.sqs"

12 = the amount of time to stay still
-----------------------------------------

The plane then sinks below the deck and blows up in the water or in between the deck and the water.  Their must be a way to solve this and I am lost for ideas. Please help or I will kill myself. (that should get you working on it)

Anyway thanks in advance. ;D >:(
"Everyone dies so deal with it and move on"

                                                      ME

fragsta

  • Guest
Re:Launching a plane?
« Reply #2 on: 30 Mar 2003, 22:26:36 »
use toadlife's script for catapult launching. If the runway is too small, make the thing in the trigger saying "200" to something like 500 or 1000. I made it to 99999999 and they go well high and blow up eventually. Its really funny haha!  ;D