Defined in: packages/engine/src/components/behaviours.tsx:137
| Property |
Type |
Default value |
Description |
onInteract |
() => void |
undefined |
Fired on the E key while near. Client behaviour, so a callback is allowed: it opens local UI, and the consequence is another behaviour’s data. |
prompt |
string |
undefined |
Shown above the entity while the hero is near. |
radius? |
number |
1.5 |
Metres from the entity within which she is near. |