Man this player

From LSWiki

Jump to: navigation, search

man this_player

Contents

Synopsis

object this_player(void)

Description

Return the current command giver. This can be an interactive user or a living object like a npc.

If called from inside the heart_beat() of a not living object 0 will be returned.

Example

       if (this_player() != this_interactive())
          write("Hey, somebody must have forced us to do a
          command!\n");

See Also

this_object(E), previous_object(E), interactive(E), living(E)

Personal tools