InStateSequence and overlays

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.

InStateSequence and overlays

Postby Jekyll Grim Payne » Sat Jan 12, 2019 7:13 am

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
Jekyll Grim Payne
Joined: 21 Jul 2008

Re: InStateSequence and overlays

Postby Graf Zahl » Sat Jan 12, 2019 6:24 pm

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.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
Joined: 19 Jul 2003
Location: Germany

Return to Scripting

Who is online

Users browsing this forum: No registered users and 2 guests