InStateSequence and overlays

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
Jekyll Grim Payne
 
 
Posts: 1065
Joined: Mon Jul 21, 2008 4:08 am
Preferred Pronouns: He/Him
Graphics Processor: nVidia (Modern GZDoom)
Contact:

InStateSequence and overlays

Post by Jekyll Grim Payne »

How does InStateSequence interact with overlays? I have an overlay with if (invoker.InStateSequence(invoker.curstate,invoker.ResolveState("Ready")) in it, and the check doesn't pass, so I assume it doesn't work that way. Can I check from the overlay which main state the weapon is in?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: InStateSequence and overlays

Post by Graf Zahl »

It only checks the actor's own current state. You really shouldn't rely too much on this function anyway, it is mainly meant to verify Dehacked modifications or bad original implementations that might crash without it.
Post Reply

Return to “Scripting”