Disabling actor from thinking

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
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!)
User avatar
Apeirogon
Posts: 1606
Joined: Mon Jun 12, 2017 12:57 am

Disabling actor from thinking

Post by Apeirogon »

More generaly, how tell/force actor, if it fall into certain conditions or receive call from "outside" of its "body", stood still, stopped changing states and didnt try run its virtual functions and function(s) in current state frame?

I try no interaction and dormant flags, but gzdoom dont take into account dormant flag it it marked after actor spawn.
User avatar
krokots
Posts: 296
Joined: Tue Jan 19, 2010 5:07 pm

Re: Disabling actor from thinking

Post by krokots »

Apeirogon wrote:More generaly, how tell/force actor, if it fall into certain conditions or receive call from "outside" of its "body", stood still, stopped changing states and didnt try run its virtual functions and function(s) in current state frame?

I try no interaction and dormant flags, but gzdoom dont take into account dormant flag it it marked after actor spawn.
Set tics to -1, that'd freeze the actor.

Return to “Scripting”