This site has been archived and made available for preservation purposes. No edits can be made.

OnLockChange

(Difference between revisions)
Return to current revision
  1.  
    Gets called when the lock state of an [wiki]Object[/wiki] has changed.
    [h="2"] Declaration [/h]
    [highlight=cpp]
    VAULTSCRIPT VAULTSPACE Void OnLockChange(VAULTSPACE ID, VAULTSPACE ID, VAULTSPACE Lock) VAULTCPP(noexcept);
    [/highlight]
    [highlight=c]
    forward OnLockChange(ID, player, Lock:lock);
    [/highlight]
    [h="2"] Parameters [/h]
    [b][wiki="ID"]ID[/wiki][/b] - the ID of the [wiki]Object[/wiki]
  2. +
    [b][wiki="ID"]player[/wiki][/b] - the ID of the [wiki]Player[/wiki] who caused the state change
  3.  
    [b][wiki="Lock"]Lock[/wiki][/b] - the new lock state of the [wiki]Object[/wiki]
    [h="2"] Return value [/h]
    None.
    [h="2"] Related pages [/h]
    [list][*][wiki]GetLock[/wiki]
    [/LIST]
    [category]VaultMP interface[/category]
    [category]Scripting callbacks[/category]