I have a script call like this
HMS.setName("test", 0)Which means set the name for event 0.Event 0 means "this event", to conform with RM's ID standard.
However, the method is evaluated in the context of the HMS object, instead of the interpreter that called it.
Is there a way for me to access the eventId stored in the interpreter using this script call?
Otherwise I'd have to use plugin commands which are evaluated in the interpreter.
Alternatively I could have users say
But then that increases risk of name clash in the interpreter.
HMS.setName("test", 0)Which means set the name for event 0.Event 0 means "this event", to conform with RM's ID standard.
However, the method is evaluated in the context of the HMS object, instead of the interpreter that called it.
Is there a way for me to access the eventId stored in the interpreter using this script call?
Otherwise I'd have to use plugin commands which are evaluated in the interpreter.
Alternatively I could have users say
Code:
this.setName("test, 0)