Skip to content

How to access current game context from UI Context? #255

Answered by ghost
realSamy asked this question in Q&A
Discussion options

You must be logged in to vote

Simple solution:
activity = _ba.get_foreground_host_activity()
with ba.Context(activity): activity.globalsnode.slow_motion = False

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@realSamy
Comment options

Comment options

You must be logged in to vote
1 reply
@realSamy
Comment options

Answer selected by realSamy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants