Sleeptime: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
sleeptime <count>
'''sleeptime''' <count>


Puts [[actor]] to "sleep" for <count>, at which point the actor is activated again. See [[count]] for an explanation of counts.
Changes [[actor]] "sleep" counter to <count>.  The actor's "sleep" counter is incremented once per tic if the player is less than 30000 units away.  The actor is put back to "sleep" once the counter reaches 32767 and the player is a certain distance away.
 
The counter can be accessed via the [[httimetosleep]] member.


[[Category:Duke3D 1.3/1.5 commands]]
[[Category:Duke3D 1.3/1.5 commands]]
[[Category:Sprite manipulation]]

Latest revision as of 01:06, 23 February 2012

sleeptime <count>

Changes actor "sleep" counter to <count>. The actor's "sleep" counter is incremented once per tic if the player is less than 30000 units away. The actor is put back to "sleep" once the counter reaches 32767 and the player is a certain distance away.

The counter can be accessed via the httimetosleep member.