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.

Check is sector moving

Postby Apeirogon » Sun Nov 10, 2019 2:24 pm

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.
Apeirogon
I have a strange sense of humour
 
Joined: 12 Jun 2017

Re: Check is sector moving

Postby Tartlman » Mon Nov 11, 2019 7:18 am

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
Tartlman
shitposting with zscript
 
Joined: 11 Oct 2018
Location: meme hell
Discord: bogus#2947

Re: Check is sector moving

Postby Apeirogon » Tue Nov 12, 2019 3:40 am

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.
Apeirogon
I have a strange sense of humour
 
Joined: 12 Jun 2017


Return to Scripting

Who is online

Users browsing this forum: No registered users and 3 guests