Enables an experience manager defined action on an entity. Camelot only sends a string message in format "input [action] [target]" when an action is selected by the player. The default action is selected by left clicking on the target. Otherwise, an action can be selected from a radial menu that is displayed by right clicking on the target.
Argument | Action Name |
---|---|
Type | String |
Default | REQUIRED |
Description | The action string to send when selected |
Argument | Icon Name |
Type | Icon |
Default | REQUIRED |
Description | The name of the icon to be displayed in the radial menu |
Argument | Entity Name |
Type | Entity |
Default | REQUIRED |
Description | Name of the entity to enable an action on |
Argument | Description |
Type | String |
Default | Empty string |
Description | The description of the enabled icon |
Argument | Default Action |
Type | Boolean |
Default | false |
Description | Whether this is the default action (performed by left clicking on the target) |
EnableIcon("SwordAttack", Sword, Tom)
EnableIcon("SwordAttack", Sword, Tom, "Attack Tom!")
EnableIcon("SwordAttack", Sword, Tom, true)
EnableIcon("SwordAttack", Sword, Tom, "Attack Tom!", true)