Home   Help Search Login Register  

Author Topic: paratroops  (Read 615 times)

0 Members and 1 Guest are viewing this topic.

PFC.Stults

  • Guest
paratroops
« on: 16 Dec 2002, 07:18:12 »
i want to make it so when my group reachs a point in a mission paratroops drop for some back up

and how do i change the height of the parachute

Offline Ranger

  • Members
  • *
  • Hoo-ah!
Re:paratroops
« Reply #1 on: 17 Dec 2002, 19:36:01 »
You need to use the setPos command.

If your parachute vehicle is named "chute", then your code could look like the following in a script:

_pos = getPos chute

chute setPos [(_pos select 0), (_pos select 1), (_pos select 2) + x]

OR

chute setPos [(_pos select 0), (_pos select 1), x]

Replace x with some value.

The first method will add (or subtract) from the parachute's current altitude.  The second method will set the parachute's altitude directly to x.

With a little work, you can use this code in a trigger's or waypoint's On Activation field.  For example:

chute setPos [(getPos chute) select 0, (getPos chute) select 1, x]

Good luck.
« Last Edit: 17 Dec 2002, 19:37:17 by Ranger »
Ranger