Library entities

Entities Library

Functions

entity (num) Returns the entity with index 'num'
owner () Returns whoever created the script
player () Same as ents_lib.owner() on the server.
self () Returns the entity representing a processor that this script is running on.


Functions

ents_lib.entity (num)
Returns the entity with index 'num'

Parameters:

  • num: Entity index

Return value:

    entity
ents_lib.owner ()
Returns whoever created the script

Return value:

    Owner entity
ents_lib.player ()
Same as ents_lib.owner() on the server. On the client, returns the local player

Return value:

    Either the owner (server) or the local player (client)
ents_lib.self ()
Returns the entity representing a processor that this script is running on. May be nil

Return value:

    Starfall entity

Valid XHTML 1.0!