spawn_entity
Create and spawn an entity at a specified position in Garry's Mod. Returns its EntIndex for targeting by other tools. Requires confirmation to apply changes.
Instructions
GUARDED. Creates and spawns an entity at a position. Returns its EntIndex, which the other world tools take as a target. Requires confirm:true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ang | No | Angles [pitch, yaw, roll]. | |
| pos | Yes | World position [x, y, z]. | |
| class | Yes | Entity class, e.g. prop_physics or spawned_money. | |
| model | No | Model path; required by prop_physics. | |
| freeze | No | Disable physics motion once spawned. | |
| confirm | No | Must be true: this changes the running game and is audited. Otherwise the call is refused. |