kOS-scripts/lib/warp.ks

14 lines
270 B
Plaintext
Executable file

@LAZYGLOBAL OFF.
function warp_to {
parameter timestamp.
KUNIVERSE:TIMEWARP:WARPTO(timestamp). // TODO: improve.
wait until TIME:SECONDS >= timestamp. // TODO
}
function warp_for {
parameter seconds.
return warp_to(TIME:SECONDS + seconds).
}