Most appropriate way to "hide" an actor?

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!)
Accensus
Posts: 2383
Joined: Thu Feb 11, 2016 9:59 am

Most appropriate way to "hide" an actor?

Post by Accensus »

NOCLIP & INVISIBLE vs. NOSECTOR vs. NOINTERACTION & INVISIBLE.

Which one is least "hacky"?

What I want to do is hide an actor from the map, but keep it around so ACS and other action special checks can still work.

EDIT: Protip: don't use NOSECTOR without NOBLOCKMAP on revivable monsters. Archviles would crash the game upon resurrecting them. Fixed. Thanks, folks.
User avatar
krokots
Posts: 296
Joined: Tue Jan 19, 2010 5:07 pm

Re: Most appropriate way to "hide" an actor?

Post by krokots »

I think NOINTERACTION should be sufficient. You can set RenderStyle to None too.
_mental_
 
 
Posts: 3819
Joined: Sun Aug 07, 2011 4:32 am

Re: Most appropriate way to "hide" an actor?

Post by _mental_ »

Lud wrote:EDIT: Protip: don't use NOSECTOR without NOBLOCKMAP on revivable monsters. Archviles would crash the game upon resurrecting them.
Runnable sample please, preferably with a bug report.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49211
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Most appropriate way to "hide" an actor?

Post by Graf Zahl »

You definitely should use NOBLOCKMAP+NOSECTOR to remove the actor from as many internal processing lists as possible.
Accensus
Posts: 2383
Joined: Thu Feb 11, 2016 9:59 am

Re: Most appropriate way to "hide" an actor?

Post by Accensus »

Done. Thank you.

Return to “Scripting”