User Tools

Site Tools


set_entity_property

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
set_entity_property [2020/04/27 18:10] justinset_entity_property [2020/04/27 18:11] justin
Line 2: Line 2:
 ---- ----
  
-Sets a custom property for an [[entity]] to the specified value. This property can then be referenced elsewhere, for example when evaluating a condition. When editing this function in the [[Script Editor]], the [[Variable Expression Builder]] provides an easy way to choose which value you'd like to assign to the property. These properties can also be given values via [[script_syntax|assignment statements]] (i.e. the "Assign Value" visual [[script]] node) or even pre-defined with initial startup values from the [[Entity Properties]] panel in the [[Map Editor]].+Sets a custom property for an [[entity]] to the specified value. This property can then be referenced elsewhere, for example when evaluating a condition. When editing this function in the [[Script Editor]], the [[Variable Expression Builder]] provides an easy way to choose which value you'd like to assign to the property. These properties can also be given values via [[script_syntax|assignment statements]] (i.e. the "Assign Value" visual [[script]] node) or even pre-defined with initial startup values from their [[Entity Properties]] panel in the [[Map Editor]].
  
 ====Signature:==== ====Signature:====
Line 22: Line 22:
 set_entity_property("chest01", "opened", true) set_entity_property("chest01", "opened", true)
 </code> </code>
-//Results:// A property is stored on the "chest01" entity with a Boolean value of "true".+//Results:// A property is stored on the "chest01" [[entity]] with a [[Boolean]] value of "true".
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
set_entity_property.txt · Last modified: 2021/04/21 18:51 by justin