Lua/Objects/Entity
From NS2 community wiki
|
Lua Object |
|
|
Name |
Lua/Objects/Entity |
|
Inherits |
|
|
Direct Subclasses |
|
|
Client/Server |
Unknown |
|
Created With |
None |
|
Destroyed With |
None |
| Description: | |
| No description provided. | |
| | This page needs editing: Not using proper format.
|
enum PropagateOptions
Entity.Propagate_Never
Entity.Propagate_Always
Entity.Propagate_Callback
Functions
nil Entity:ClearEffects ( )
Entity Entity:FindChildEntity ( Entity )
string Entity:GetClassName ( )
bool Entity:GetIsMapEntity ( )
bool Entity:GetIsTempEntity ( )
bool Entity:GetIsVisible ( )
bool Entity:GetLagCompensated ( )
string Entity:GetMapName ( )
Entity Entity:GetParent ( )
nil Entity:PlaySound ( string SoundPath )
nil Entity:SetAttachPoint ( string AttachPointName )
nil Entity:SetIsVisible ( bool IsVisible )
Entity:SetLagCompensated ( bool lagCompensated )
Entity:SetNextThink ( float DelayToNextOnThink )
Entity:SetOrigin ( Vector Position )
Entity:SetPropagate ( PropagateOptions option )
nil Entity:SetParent ( Entity NewParent )
nil Entity:SetSoundParameter ( string ,string ,float ,float )
Entity:SetUpdates ( bool enableUpdates )
nil Entity:StopSound ( string SoundPath )
Hooks
Coords Entity:GetAttachPointCoords ( integer index )
- Called by both lua code and the engine to Get the Coords of the specified attach point
integer Entity:GetAttachPointIndex ( string attach_point ) description
- Called when the entity is created
- Called when the data from the map file has been loaded into the entity some of the fields will be loaded as strings
nil Entity:OnUpdate ( float deltaTime )
- Called every frame to update the entity
- Called when the entity is destroyed
nil Entity:OnSynchronized ( )
- Called when the network variables for the entity are updated from values from the server.
nil Entity:OnProcessMove ( Move PlayerInput )
- Called after OnUpdate, OnUpdatePhysics, but before rendering takes place.
Lua/Objects/Entity/OnUpdateRender
Lua/Objects/Entity/OnUpdatePhysics
- Called to handle user input for the player
nil Entity:OverrideInput ( Move PlayerInput )
- Only called client side
nil Entity:TraceRay ( Vector PointStart, Vector PointEnd, Trace TraceResult )
- Called by the engine when a ray is traced through the world
Coords Entity:GetCameraViewCoords ( )
- Called by the engine to get the object to world space transformation for the camera.
bool Entity:GetCanPlayerHearPlayer ( Entity Player )
bool Entity:OnGetIsRelevant ( Entity Player )
nil Entity:UpdateClientEffects ( float )
float Entity:GetRenderFov ( )
