Garry's Mod Wiki

Tool:MakeGhostEntity

  Tool:MakeGhostEntity( string model, Vector pos, Angle angle )

Description

Initializes the ghost entity with the given model. Removes any old ghost entity if called multiple times.

The ghost is a regular prop_physics entity in singleplayer games, and a clientside prop in multiplayer games.

Arguments

1 string model
The model of the new ghost entity
2 Vector pos
Position to initialize the ghost entity at, usually not needed since this is updated in Tool:UpdateGhostEntity.
3 Angle angle
Angle to initialize the ghost entity at, usually not needed since this is updated in Tool:UpdateGhostEntity.