[ACS] Is it possible to do check\get for superclass?

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
Void Weaver
Posts: 724
Joined: Thu Dec 18, 2014 7:15 am
Contact:

[ACS] Is it possible to do check\get for superclass?

Post by Void Weaver »

Subj.
User avatar
Void Weaver
Posts: 724
Joined: Thu Dec 18, 2014 7:15 am
Contact:

Re: [ACS] Is it possible to do check\get for superclass?

Post by Void Weaver »

Looks that only CheckProximity with CPXF_ANCESTOR allows to perform superclass check via a some ugly crook way.

Still hope to see another options.
User avatar
Rip and Tear
Posts: 185
Joined: Tue May 02, 2017 3:54 pm

Re: [ACS] Is it possible to do check\get for superclass?

Post by Rip and Tear »

You could theoretically write this in ZScript, making use of `Object.GetParentClass`, and then use `ScriptCall` to invoke it from ACS.
Post Reply

Return to “Scripting”