BobobUnicorn
Chieftain
- Joined
- Feb 17, 2025
- Messages
- 2
It seems the entire JS context is destroyed when switching between "shell" and "game" contexts (i.e. between in-game and main menu). I've found that
I've not been able to determine how
Automation.setParameter
is able to persist data between these contexts:
JavaScript:
// set arbitrary strings to the specified key
Automation.setParameter('CurrentTest', <key: string>, <value: string>);
// get strings from the specified key
const value: string = Automation.getParameter('CurrentTest', <key: string>);
I've not been able to determine how
Automation.setParameterSet
works, but the above should be sufficient for all serializable data.