Solved Set time by script

Question that is answered or resolved.

O Ilusionista

Captain 100K
I've searched on the manual but I found no info about this.
It's possible to set/reset time (the level time) by script?

Solution: Use version 4456+
Added "game_time" to script accessible engine variants.

Code:
int game_time = Openborvariant(“game_time”);
changeopenborvariant(“game_time”, game_time);
Acceptable range is 0-99. Any value exceeding range in either direction will be overwritten to nearest acceptable value on the next engine cycle.
 
O Ilusionista said:
I've searched on the manual but I found no info about this.
It's possible to set/reset time (the level time) by script?

At the moment no. Shouldn't be all that hard to add, though keep in mind that kind of like velocity and such, the script values can and probably will look different compared to text values.

DC
 
I just want to reset the time once the boss is spawned. I know I can just spawn an Time item though, but it would be cool to add an openborvariant("time") or something like that.
 
Back
Top Bottom