User Tools

Site Tools


set_entity_tooltip

This is an old revision of the document!


Set Entity Tooltip


Sets the tooltip for the specified entity. An empty string value can be specified for the tooltip text in order to remove the entity's tooltip.

set_entity_tooltip(entity, tooltip_text)
ArgumentDescriptionTypeRequired
entityEntity for which to change the tooltip.EntityYes
tooltip_textText to display for the tooltip.StringYes

Example:

set_entity_tooltip(self, "Wooden Chest")

Results: The tooltip text for the entity that triggered this script will be changed to “Wooden Chest”.

Use the Set Entity Script function to change the behavior of an object after it has been interacted with or to remove its script so it can no longer be interacted with, for example a door that the player cannot close once opened.


Editor Node:

Visual Demo:

set_entity_tooltip.1507823048.txt.gz · Last modified: 2017/10/12 08:44 by justin