mirror of
https://github.com/etlegacy/lua_apidoc.git
synced 2024-11-10 06:31:58 +00:00
Added new functions
This commit is contained in:
parent
f75b293894
commit
763b9b06c8
1 changed files with 36 additions and 1 deletions
|
@ -520,6 +520,14 @@ Removes a weapon from a client.
|
|||
.. note:: Removing a weapon also removes its associated alternate weapon.
|
||||
|
||||
|
||||
et.GetCurrentWeapon( clientNum )
|
||||
----------------------------------------------
|
||||
|
||||
Return weapon, ammo, ammoclip from a client.
|
||||
|
||||
* **clientNum** is the slot number of the client.
|
||||
|
||||
|
||||
Entities
|
||||
========
|
||||
|
||||
|
@ -638,12 +646,39 @@ Sets a value in an entity.
|
|||
* **arrayindex**, if present, specifies which element of an array entity field to set.
|
||||
|
||||
|
||||
et.trap_Trace( start, mins, maxs, end, entNum, mask )
|
||||
-----------------------------------------------------
|
||||
|
||||
Traces an entity.
|
||||
|
||||
* **start** is the starting position.
|
||||
* **mins** is the minimum length.
|
||||
* **maxs** is the maximum length.
|
||||
* **ends** is the ending position.
|
||||
* **entNum** is the entity number that is traced.
|
||||
* **mask** is the content mask.
|
||||
|
||||
|
||||
et.G_HistoricalTrace( ent, start, mins, maxs, end, entNum, mask )
|
||||
-----------------------------------------------------------------
|
||||
|
||||
Runs a trace with players in historical positions.
|
||||
|
||||
* **ent** is the entity which trace history is handled.
|
||||
* **start** is the starting position.
|
||||
* **mins** is the minimum length.
|
||||
* **maxs** is the maximum length.
|
||||
* **ends** is the ending position.
|
||||
* **entNum** is the entity number that is traced.
|
||||
* **mask** is the content mask.
|
||||
|
||||
|
||||
et.G_AddEvent( ent, event, eventparm )
|
||||
--------------------------------------
|
||||
|
||||
Adds an event to the entity event sequence.
|
||||
|
||||
* **ent** is the entity which event sequnce is handled.
|
||||
* **ent** is the entity which event sequence is handled.
|
||||
* **event** is the event to add.
|
||||
* **eventparm** is optional parameter for the event.
|
||||
|
||||
|
|
Loading…
Reference in a new issue