SoulFire LogoSoulFire

Estimate explosion damage

POST
/v1/instances/{instance_id}/bots/{bot_id}/world/explosion-damage:estimate

Authorization

AuthorizationBearer <token>

Preferred API authentication. Use a JWT with the api audience.

In: header

Path Parameters

instance_id*string
Formatuuid
bot_id*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

target*

Network IDs are scoped to a connection epoch and must not be cached alone.

center*

A precise world position. Used for entity locations and pathfinding goals where sub-block precision matters.

power*|

Vanilla explosion power. The damage radius is twice this value.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/bots/497f6eca-6276-4993-bfeb-53cbbbba6f08/world/explosion-damage:estimate" \  -H "Content-Type: application/json" \  -d '{    "target": {},    "center": {      "x": 0.1,      "y": 0.1,      "z": 0.1    },    "power": 0.1  }'
{  "distance": 0.1,  "damageRadius": 0.1,  "exposure": 0.1,  "rawDamage": 0.1,  "damageAfterArmor": 0.1,  "damageAfterResistance": 0.1,  "damageAfterEnchantments": 0.1,  "absorbedDamage": 0.1,  "estimatedHealthDamage": 0.1,  "invulnerable": true,  "armorPoints": 0,  "armorToughness": 0.1,  "resistanceLevel": 0,  "explosionProtection": 0}

How is this page?