Difference between revisions of "IsOnline"
From UODemo Wiki
(4) |
m (Reverted edits by 38.107.149.14 (Talk) to last version by Batlin) |
||
Line 1: | Line 1: | ||
− | + | integer '''isOnline'''(object ''PlayerObject''); | |
+ | |||
+ | This function will return 1 if the given object is a valid player object and if that player is online. Otherwise 0 is returned. Because a player object is required, passing any other object like NPC's will result in a return value of 0. | ||
+ | |||
+ | |||
+ | Internal Info: isOnline == Player->pflags & 0x04 | ||
+ | |||
+ | |||
+ | Return to the [[Command List]]. |
Latest revision as of 18:06, 3 March 2010
integer isOnline(object PlayerObject);
This function will return 1 if the given object is a valid player object and if that player is online. Otherwise 0 is returned. Because a player object is required, passing any other object like NPC's will result in a return value of 0.
Internal Info: isOnline == Player->pflags & 0x04
Return to the Command List.