Tile - YEntity - Set Custom Interaction – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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

YlandsTile-247.png

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

Parameters

hint

interactionId

overridesDefault

Availability

Server

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.