Skip to main content
POST
/
trigger
/
create
create a trigger zone entity
curl --request POST \
  --url http://localhost:3917/trigger/create \
  --header 'Content-Type: application/json' \
  --data '
{
  "action": "damage:10",
  "position": [
    0,
    0,
    0
  ],
  "zone": [
    1,
    1,
    1
  ]
}
'
{
  "entity_id": 4,
  "message": "Trigger zone created at (0, 0, 0)",
  "ok": true
}

Body

application/json

Trigger-zone position, half-extents zone, and an action string (damage:N or heal:N).

The body is of type any.

Response

200 - application/json

Trigger-zone entity created.