Garry's Mod Wiki

Tool:UpdateGhostEntity

  Tool:UpdateGhostEntity()

Description

Updates the position and orientation of the ghost entity based on where the toolgun owner is looking along with data from object with id 1 set by Tool:SetObject.

This should be called in the tool's TOOL:Think hook.

This command is only used for tools that move props, such as easy weld, axis and motor. If you want to update a ghost like the thruster tool does it for example, check its source code.