Global ACS Variables from ZScript play context

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

Global ACS Variables from ZScript play context

Postby AFADoomer » Sat May 01, 2021 12:37 pm

Global ACS variables can be retrieved via ZScript in the base status bar class, but this is limited to ui context.

Can this set of functions be exposed more generally so that global variables can also be read from play context?
User avatar
AFADoomer
 
Joined: 15 Jul 2003

Re: Global ACS Variables from ZScript play context

Postby Cherno » Sat May 01, 2021 1:04 pm

Couldn't you just call CallACS from ZScript to have an ACS script return one of the global variable values?
User avatar
Cherno
 
Joined: 06 Dec 2016

Re: Global ACS Variables from ZScript play context

Postby AFADoomer » Sat May 01, 2021 1:42 pm

As a workaround, yes... Or use a network event to transfer the value from ui to play context.

But directly accessing the variable without additional steps would be far more simple.
User avatar
AFADoomer
 
Joined: 15 Jul 2003


Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 0 guests