my
me
Pointer to the entity that the current function is executed from or assigned
to. Is valid for the whole function and all functions called from it, and is
preserved during wait().
The pointer is invalid if the function was not executed by an entity, e.g. by a key
event or the main() function.
me can be used as synonym for my.
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,
player, ent_create
► latest
version online