blob: bd57ca075cf25d8df0b8f99b4e4f45350a906e6f [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
Zesstra715ec202025-07-09 22:18:31 +02002 object this_player(void)
MG Mud User88f12472016-06-24 23:31:02 +02003
Zesstra715ec202025-07-09 22:18:31 +02004DESCRIPTION
5 Return the current command giver. This can be an interactive
6 user or a living object like a npc.
MG Mud User88f12472016-06-24 23:31:02 +02007
Zesstra715ec202025-07-09 22:18:31 +02008 If called from inside the heart_beat() of a not living object
9 0 will be returned.
MG Mud User88f12472016-06-24 23:31:02 +020010
Zesstra715ec202025-07-09 22:18:31 +020011EXAMPLES
12 if (this_player() != this_interactive())
13 write("Hey, somebody must have forced us to do a
14 command!\n");
MG Mud User88f12472016-06-24 23:31:02 +020015
Zesstra715ec202025-07-09 22:18:31 +020016SEE ALSO
MG Mud User88f12472016-06-24 23:31:02 +020017 this_object(E), previous_object(E), interactive(E), living(E)