kOS-scripts/lib/warp.ks

14 lines
270 B
Plaintext
Raw Normal View History

@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).
}