SetPapyrusVariable
Jump to navigation
Jump to search
Attempts to set a property on a script attached to the specified reference. The first script it finds with the specified property will be set - later scripts will be ignored.
Syntax[edit | edit source]
<reference>.SetPapyrusVariable <property> <value> <reference>.SetPV <property> <value>
Parameters[edit | edit source]
- Reference: The reference which has the desired scripts attached
- Property: The property to set - must be a boolean, integer, float, or string
- Value: The value to set the property to.
- Note: For boolean properties the only false value is "false" (case-insensitive). 0 will not work.
Examples[edit | edit source]
MyReference.SetPV MyIntProperty 1 MyReference.SetPV MyBoolProperty True