<RetVar> = Returns the amount of game playing time that has elapsed in seconds since the currently loaded game save was started as a new game.
Example:
$playing.time = playing time
$stop.time = $playing.time + 600
while $playing.time < $stop.time
| $attacker = create ship: type= Discoverer owner= Enemy addto= [SECTOR] x= 0 y= 0 z= 0
|@ START = $attacker -> call script my.attack.target.script : target= [PLAYERSHIP]
|@ wait 60000 ms
| $playing.time = playing time
end
By using the playing time you can do things like above, 1 discoverer will be created in the center of the players sector every minute for 10 minutes and set to attack the player.
Command Location:
- »» General Commands
<RetVar> = playing time