Skip to main content
POST
/
projectile
/
spawn
spawn a projectile
curl --request POST \
  --url http://localhost:3917/projectile/spawn \
  --header 'Content-Type: application/json' \
  --data '
{
  "damage": 25,
  "direction": [
    1,
    0,
    0
  ],
  "from": [
    0,
    0,
    0
  ],
  "lifetime": 3,
  "speed": 20
}
'
{
  "entity_id": 5,
  "ok": true
}

Body

application/json

Projectile origin from, direction, speed, damage, and lifetime seconds.

The body is of type any.

Response

200 - application/json

Projectile entity spawned.