Garry's Mod Wiki

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.

Page Links


Special Pages


Wikis

?

Render Time: 26ms

DB GetPage 6
Generate Html 1
SaveChanges (1) 9
Render Body 0
Render Sidebar 7