Check is sector 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!)
Post Reply
User avatar
Apeirogon
Posts: 1605
Joined: Mon Jun 12, 2017 12:57 am

Check is sector moving

Post by Apeirogon »

How check is some sector ceiling/floor moves up/down at this specific game tick?
I want make gibs which act more like actual things under crusher, which means fly out of crusher as "soon" as crusher start crushing it.

I know there are grind actor virtual, but it usually calls when actor already too late to splash out of crusher.
User avatar
Tartlman
Posts: 226
Joined: Thu Oct 11, 2018 5:24 am
Location: meme hell
Contact:

Re: Check is sector moving

Post by Tartlman »

probably your best bet is to have the actor check the sector(s) it's in/near, and then keep track of what it was like last tic and see if it's different on the next one
User avatar
Apeirogon
Posts: 1605
Joined: Mon Jun 12, 2017 12:57 am

Re: Check is sector moving

Post by Apeirogon »

And what if lift with actor surrounded by another lifts? And that lifts with another lifts.
I know that possibility of this is too low.
Post Reply

Return to “Scripting”