Page 2 of 2

Re: how to make objects come down and kill people

Posted: Mon Jul 16, 2012 11:47 pm
by Jaspo
To learn how to generate an error log, look at question 4 in the FAQ/Everything You Need To Know thread.

And to be a little clearer, what exactly they're trying to get you to set up is a combination of a death region and a procedurally animated prop, where the death region is disabled when the animation makes the conveyor hammer of doom go up into "harmless" position, and enabled when the hammer falls. This of course means there needs to be a death region of logical size and dimensions right where death from above would be expected. And, that death region needs to be named the same thing in zeroeditor as the name found in AddDeathRegion below, while the name of the procedural animation you create in zeroeditor needs to have the same name as what's found in PlayAnimation below. And, I think you might need two animations; one for the hammer to go up, and one for it to go down.
...
PlayAnimation("YOURANIM")
AddDeathRegion("YOURDEATHREGION")
...

And as for timers, I think you'll need two as well.
The first, when it goes off, plays the hammer drop animation, activates the death region, and starts the second timer.
The second, when it goes off, plays the hammer raise animation, deactivates the death region, and starts the first timer.
Congratulations, you've now created a timer loop that will run the whole time the map is played.
Edit: if I remember right you'll also have to rewind the animations, so you'd rewind the hammer raise animation when the first timer goes off and rewind the hammer drop animation when the second timer goes off.