Entity:SetPos
Description
Moves the entity to the specified position.
Some entities, such as ragdolls, will continually reset their position. Consider using PhysObj:SetPos on every physics object to move ragdolls.
If the new position doesn't take effect right away, you can use Entity:SetupBones to force it to do so. This issue is especially common when trying to render the same entity twice or more in a single frame at different positions.
Entities with Entity:GetSolid of
SOLID_BBOX will have their angles reset!This will fail inside of predicted functions called during player movement processing. This includes WEAPON:PrimaryAttack and WEAPON:Think.
Issue Tracker: 2447
Issue Tracker: 2447
Arguments
2 boolean touch_triggers = false
If set, will also try to activate any triggers in the new position.
This can lead to infinite loops if using from touch hooks, so be careful.
This was recently added in version (2026.10.26). It might only be available on the Dev Branch right now.
Garry's Mod
Rust
Steamworks
Wiki Help