This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
addons:functions [2017/04/21 20:29] atom0s |
addons:functions [2017/04/21 20:33] atom0s |
||
---|---|---|---|
Line 37: | Line 37: | ||
* **Returns** | * **Returns** | ||
* string - The parsed string. | * string - The parsed string. | ||
+ | |||
+ | ==== GetEntity ==== | ||
+ | |||
+ | Obtains an entity object from the given index. | ||
+ | <code cpp>object GetEntity(index);</code> | ||
+ | * **Parameters** | ||
+ | * index - (number) The index of the entity to obtain. | ||
+ | * **Returns** | ||
+ | * object - The entity object if valid, nil otherwise. | ||
+ | |||
+ | ==== GetPlayerEntity ==== | ||
+ | |||
+ | Obtains the player entity object. | ||
+ | <code cpp>object GetPlayerEntity();</code> | ||
+ | * **Parameters** | ||
+ | * //Function has no parameters.// | ||
+ | * **Returns** | ||
+ | * object - The entity object if valid, nil otherwise. |