Calling Floor_MoveToValue while the floor is still moving

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Guest

Calling Floor_MoveToValue while the floor is still moving

Post by Guest »

Hi guys. When I call Floor_MoveToValue, the floor moves to that position over time.

If I call Floor_MoveToValue again on the same sector while it's still moving, it seems to ignor the call altogether. Is this correct?

Is there some way I can cancel the current destination so that I can override it?

Have I explained the situation ok?
User avatar
Blue Shadow
Posts: 4901
Joined: Sun Nov 14, 2010 12:59 am
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: Calling Floor_MoveToValue while the floor is still movin

Post by Blue Shadow »

Try Floor_Stop(<tag>); before attempting to move the floor again.
Guest

Re: Calling Floor_MoveToValue while the floor is still movin

Post by Guest »

Boom!

Thank you mr Blue Shadow, that has fixed it.

Return to “Scripting”