no edit summary
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<center>'''''GetRestState''''' - ''Documentation by [[User:EDG|EDG]] (original by [[User:Dga|Dga]])''</center> | |||
Returns whether the player is in a [[Rest|rested]] (earning double XP for kills) or normal state. | |||
<pre>GetRestState()</pre> | |||
'''''Arguments''''' | |||
:None. | |||
---- | |||
'''''Returns''''' | |||
:* '''1''' if the player is in a rested state. | |||
:* '''2''' if the player is in a normal state. | |||
---- | |||
'''''Example''''' | |||
<pre>rested = GetRestState();</pre> | |||
'''''Result''''' | |||
''rested'' is assigned a value of '''1''' if the player is rested, or a value of '''2''' if the player is earning normal XP. | |||