WEntity - lnx00/Lmaobox-Library GitHub Wiki
lnxLib.TF2.WEntity
Wrapper for any type of entity. It contains all default entity functions and variables as well as the following extensions:
Functions
- .FromEntity(entity)Creates a WEntity from a native entity
Methods
- :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.