stage_spawn
Creates a creature from a template at point, in the area of the creature you control.
A template is the game’s creature resource, not a kind’s name: creatures gives each creature’s template, and resources with type utc and a word finds more (for example wolf, ogre_default, hurlock_epic_archer).
The game places the creature at the nearest spot it can stand. moved says how far from point that was; a point inside a wall may put it in the next room. The creature finishes setting up over the next few frames, so read its health later with creature. With group, it joins that group at once, and the answer says whether it is hostileToParty.
Arguments
| Name | Type | Required | What |
|---|---|---|---|
template | string | yes | The creature’s template. |
point | any | yes | Where to create it: {x, y, z} or [x, y, z]. |
facing | number | Which way it faces, in degrees. Default 0. | |
group | integer | The group to put it in, as stage_group does. |
Call it as stage_spawn over MCP, or POST /api/tool/stage_spawn with the arguments as JSON.