Grimwar/Entities/env explosion
Apply radial damage and force, with an optional visual effect.
Placement: Point.
Set it up
Place the point at the blast origin. Set damage, radius, and force, then call explode from server logic. A disabled explosion ignores explode. Runtime damage, radius, and force setters clamp to zero or greater. Effect Prefab is optional; Effect Lifetime controls its presentation lifetime.
Settings
These are the initial authoring values. Script inputs and runtime state are listed separately below.
| Setting | Default | Meaning and choices |
|---|---|---|
damageDamage |
100 |
Minimum: 0.
|
radiusRadius |
5 |
Minimum: 0.
|
forceForce |
60 |
Radial force supplied to damage and physics reactions. Minimum: 0.
|
affect_rigidbodiesAffect Rigidbodies |
true |
Apply Unity explosion force to dynamic rigidbodies in range. |
effect_prefabEffect Prefab |
None |
Optional prefab instantiated on clients when the explosion fires. Reference: prefab.
|
effect_lifetimeEffect Lifetime |
5 |
Minimum: 0.
|
start_disabledStart Disabled |
false |
Value type: bool.
|
ignore_nav_meshIgnore Nav Mesh |
false |
Exclude this entity from navigation-mesh building. This does not disable its gameplay collision. |
VSig contract
Use the names below with a ref bound to this entity. The value column describes the catalog value type, not a C# method signature. See Read the reference for arguments, authority, and common controls.
| Kind | Member | Value | Authority / access |
|---|---|---|---|
| Input | disable |
none |
Server |
| Input | enable |
none |
Server |
| Input | explode |
string |
Server |
| Input | kill |
none |
Server |
| Input | set_damage |
float |
Server |
| Input | set_force |
float |
Server |
| Input | set_radius |
float |
Server |
| Input | toggle |
none |
Server |
| Output | disabled |
none |
Server |
| Output | enabled |
none |
Server |
| Output | explode |
string |
Server |
| Output | killed |
none |
Server |
| Property | damage |
float |
Server; read/write |
| Property | force |
float |
Server; read/write |
| Property | is_enabled |
bool |
Server; read/write |
| Property | radius |
float |
Server; read/write |
This entity supports operational enable/disable. Repeating the current state does not emit another transition. kill is permanent for this map load.