Skip to main content

ValidationRollbackInvalidLockProperties

Callable

  • ValidationRollbackInvalidLockProperties(sourceProperty: any, targetProperty: any, hasLockPermissions: boolean): boolean

  • Copies an item's lock-related properties from one Property object to another based on whether or not the source character has permissions to modify the lock. Rolls back any invalid changes to their previous values.


    Parameters

    • sourceProperty: any

      The original Property object on the item

    • targetProperty: any

      The Property object on the modified item

    • hasLockPermissions: boolean

      Whether or not the source character of the appearance change has permission to modify the lock (as determined by ValidationIsLockChangePermitted)

    Returns boolean

    • TRUE if the target Property object was modified as a result of copying (indicating that there were invalid changes to the lock), FALSE otherwise