HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Lifts up and down triggering

06-16-2004, 01:13 PM#1
chemo
Hi, atm im making a map where a unit can actually jump in to a lift.. but i need a trigger to lower the lift after 2 sec, when the unit has touch the lift.. then when the lift does touch the ground, the unit on the lift should die... does any one has a good suggestion for that trigger ? cause i would really like to this little map

regards
~chemo
06-16-2004, 01:42 PM#2
johnfn
You can set a doodad's height; its a trigger. Just dosommat like this:

for each integer A from 1 to 100
set tempvar = 100 - (integer A) //so that it goes down instead of up
Destructable - set height to tempvar x 20
wait 0.1 seconds

That should work , if ground height is actually 0 like I think.
06-16-2004, 03:08 PM#3
chemo
Quote:
Originally Posted by johnfn
You can set a doodad's height; its a trigger. Just dosommat like this:

for each integer A from 1 to 100
set tempvar = 100 - (integer A) //so that it goes down instead of up
Destructable - set height to tempvar x 20
wait 0.1 seconds

That should work , if ground height is actually 0 like I think.

that wasnt a solution on my problem that was how i make the lift raise and lower... i need the lift to lower when a unit jumps on to it.. and raise when unit leave the lift..

plz help me on this one.. (whole solution, thx)
06-16-2004, 03:23 PM#4
CynicalYouth
he gave you the hard part of the solution. All you need now is to make a region on the lift and use unit enters region as your event. Then in the actions he gave will lower the lift. Make another trigger to raise the lift using unit leave region as the event.
06-16-2004, 04:44 PM#5
Deathperception
Simple first off put a region at the top and bottom of the lift when the unit enters the lift (the region) set the action so it goes down and if you want the unit to die at the bottom just put the wait command and find out how many seconds it takes to reach bottom and after put the wait action use the the kill unit action. Then set another trigger unit leaves region and in actions make the lift go back up. Of coarse using Johnfn's explanation of doodad height in the raising and falling of the doodad.

Your explanation was a little complicated hope I understood it right.