User Tools

Site Tools


addons:functions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
addons:functions [2015/11/20 01:32]
atom0s
addons:functions [2015/11/20 01:42]
atom0s
Line 4: Line 4:
  
 ---- ----
 +
 +==== 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.
  
 ==== Bitpack Functions ==== ==== Bitpack Functions ====
addons/functions.txt · Last modified: 2015/11/20 01:42 by atom0s