SetPapyrusVariable
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.
SyntaxEdit
<reference>.SetPapyrusVariable <property> <value> <reference>.SetPV <property> <value>
ParametersEdit
- 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.
ExamplesEdit
MyReference.SetPV MyIntProperty 1 MyReference.SetPV MyBoolProperty True