User Tools

Site Tools


set_entity_tooltip

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
set_entity_tooltip [2017/10/12 08:44] – created justinset_entity_tooltip [2018/03/16 09:49] justin
Line 4: Line 4:
 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. 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.
  
 +====Signature:====
 <code python> <code python>
 set_entity_tooltip(entity, tooltip_text) set_entity_tooltip(entity, tooltip_text)
Line 9: Line 10:
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|entity|Entity for which to change the tooltip.|[[Entity]]|Yes| +|entity|Entity to change the tooltip for.|[[Entity]]|Yes| 
-|tooltip_text|Text to display for the tooltip.|[[String]]|Yes|+|tooltip_text|Text to display in the tooltip.|[[String]]|Yes|
  
 ====Example:==== ====Example:====
Line 19: Line 20:
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-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.+Use the **Set Entity Tooltip** function to set some initial descriptive tooltip text onto an object that has just become interactable or to update the existing tooltip text of an object whose appearance or purpose has changed.
 </WRAP> </WRAP>
  
set_entity_tooltip.txt · Last modified: 2021/04/21 18:51 by justin