Mod:Creation Kit/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.

Syntax
.SetPapyrusVariable .SetPV

Parameters

 * 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
MyReference.SetPV MyIntProperty 1 MyReference.SetPV MyBoolProperty True