Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Cronyne

Check Floor Height action?

Recommended Posts

I'm trying to make an elevator that can move up and down by using the sector (ala Duke Nukem 3D), but using two Sector Actions things won't work, even when deactivating them. Is there any script command that can check the height of the floor, then move the elevator accordingly?

Share this post


Link to post

Well thanks stewboy for that action, looks like that's my bet. Problem is I worked it into a script, and it isn't working exactly right. It won't move down, it just clicks and stays in place.

script 3 (void)
{
if (GetSectorFloorZ(12,0,0) < -7)
    Elevator_RaiseToNearest(12,20);
else
    Elevator_LowerToNearest(12,20);
}
It's most likely something wrong with the 'if' line, but I don't see what.

And sorry GreyGhost, I'm sticking with ZDoom.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×