ENTITY:CalcAbsolutePosition
Description
Called whenever the entity's position changes. A callback for when an entity's angle changes is available via Entity:AddCallback.
Like ENTITY:RenderOverride, this hook works on any entity (scripted or not) it is applied on.
Defining or clearing this function in the entity table will not do anything, you must define this method in the entity itself
If EFL_DIRTY_ABSTRANSFORM is set on the entity, this will be called serverside only; otherwise, this will be called clientside only. This means serverside calls of Entity:SetPos without the EFL_DIRTY_ABSTRANSFORM flag enabled (most cases) will be called clientside only.
The give concommand will call this hook serverside only upon entity spawn.
Garry's Mod
Rust
Steamworks
Wiki Help