player

Global pointer to the player entity on the current machine. Should be set by a player function, and is used in predefined functions, for instance for moving the player through twice pressing [0].

Type:

ENTITY*

Example:

action player_walk
{	
 	 player = me; // copy the entity pointer to the global player pointer.
   my.material = mtl_bump_armor;
   ...
} 

See also:

Entity, you, me, ent_create