Grant Power
Grants a power to the entity from a specified power source.
Type ID: origins:grant_power
Caution
Since only Living Entities can have powers, using this entity action on a non-living entity might crash the game. Always make sure to check if the entity is a Living Entity by using the Living (Entity Condition Type) to prevent your game from crashing.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
power |
Identifier | The namespace and ID of the power to be granted to the entity. | |
source |
String | The namespace and ID of the source of the granted power. |
Examples
"entity_action": {
"type": "origins:grant_power",
"power": "origins:burn_in_daylight",
"source": "example:power_source"
}
This example will grant the entity the origins:burn_in_daylight power from the example:power_source source.