This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
set_global_property [2017/09/18 08:29] – justin | set_global_property [2018/03/16 09:49] – justin | ||
---|---|---|---|
Line 4: | Line 4: | ||
Sets a custom global property 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 pre-defined with initial startup values from the [[Global Properties]] tab in your [[Game Configuration]]. | Sets a custom global property 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 pre-defined with initial startup values from the [[Global Properties]] tab in your [[Game Configuration]]. | ||
+ | ====Signature: | ||
<code python> | <code python> | ||
set_global_property(property_name, | set_global_property(property_name, | ||
Line 18: | Line 19: | ||
====Example: | ====Example: | ||
<code lua> | <code lua> | ||
- | set_global_property(" | + | set_global_property(" |
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> |