-
Notifications
You must be signed in to change notification settings - Fork 4
WEntity
lnx00 edited this page Jun 3, 2023
·
7 revisions
Wrapper for any type of entity. It contains all default entity functions and variables as well as the following extensions:
-
.FromEntity(entity)
Creates a WEntity from a native entity
-
:SetEntity(entity)
Sets the native base entity -
:Unwrap()
Returns the native entity that has been wrapped. -
:Equals(b)
Returns if both entities are equal. Use this instead of the == operator! -
:DistTo(other)
Returns the distance to the other entity. -
:GetSimulationTime()
Returns the simulation time of the entity. -
:Extrapolate(t)
Performs a simple extrapolation with the given time. -
:IsVisible(fromEntity)
Returns if the entity is visible from the given origin entity.