Tile - YEntity - Set Custom Interaction – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search

Set Custom Interaction(Entity, Hint, Id, Override default)

YlandsTile-247.png

setCustomInteraction(hint: any, interactionId: any, overridesDefault: boolean): void;

Parameters

hint

interactionId

overridesDefault

Description

Allows to set custom interaction onto an entity. Hint - text displayed over the entity. Id - identifier used to distinguish interactions (optional). Override default - whenever the interaction will be added to already existing interaction. Work only for charters.

Notes

  • Custom interaction will trigger On Interact.
  • Custom interaction will trigger appropriate Event Listener.