kOS-scripts/lib/warp.ks
Casper V. Kristensen 804455c125
Fix file permissions.
2019-02-07 22:10:16 +01:00

14 lines
270 B
Plaintext

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