This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
addons:functions [2015/11/20 01:32] atom0s |
addons:functions [2015/11/20 01:42] (current) atom0s |
||
---|---|---|---|
Line 2: | Line 2: | ||
The following page covers the functions that are built into Ashita's Addons.dll plugin. | The following page covers the functions that are built into Ashita's Addons.dll plugin. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Global Functions ==== | ||
+ | |||
+ | //void// **AddIncomingPacket**(packet, id, size); | ||
+ | * **Parameters** | ||
+ | * packet - The packet data. (Table) | ||
+ | * id - The id of the packet being sent. | ||
+ | * size - The size of the packet data to send. | ||
+ | * **Returns** | ||
+ | * //Function does not return a value.// | ||
+ | |||
+ | //void// **AddOutgoingPacket**(packet, id, size); | ||
+ | * **Parameters** | ||
+ | * packet - The packet data. (Table) | ||
+ | * id - The id of the packet being sent. | ||
+ | * size - The size of the packet data to send. | ||
+ | * **Returns** | ||
+ | * //Function does not return a value.// | ||
+ | |||
+ | //string// **ParseAutoTranslate**(str, addBrackets); | ||
+ | * **Parameters** | ||
+ | * str - The string to parse auto-translate strings from. | ||
+ | * addBrackets - Flag to determine if brackets should be readded to the parsed string. | ||
+ | * **Returns** | ||
+ | * The parsed string. | ||
+ | |||
+ | //object// **GetEntity**(index); | ||
+ | * **Parameters** | ||
+ | * index - The index of the entity to obtain. | ||
+ | * **Returns** | ||
+ | * The entity at the given index. | ||
+ | |||
+ | //object// **GetPlayerEntity**(); | ||
+ | * **Parameters** | ||
+ | * //Function has no arguments.// | ||
+ | * **Returns** | ||
+ | * The current players entity. | ||
---- | ---- |