Tile - YEntity - Set Custom Interaction – Ylands

From Bohemia Interactive Community
Revision as of 15:27, 24 November 2023 by Lou Montana (talk | contribs) (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

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.