Tile - YEntity - Set Custom Interaction – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
 
Line 31: Line 31:
----
----
{{Navbox/Ylands}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}


[[Category: Instructions]]
[[Category: Instructions]]

Latest revision as of 15:27, 24 November 2023

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.