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

SetLock

(Difference between revisions)
Return to current revision
  1.  
    Sets the lock level of an [wiki]Object[/wiki].

    [h="2"] Declaration [/h]
    [highlight=cpp]
    VAULTSCRIPT VAULTSPACE State (*VAULTAPI(SetLock))(VAULTSPACE ID, VAULTSPACE ID, VAULTSPACE Lock) VAULTCPP(noexcept);
    [/highlight]
    [highlight=c]
    native Bool:SetLock(ID, actor, Lock:lock);
    [/highlight]
    [h="2"] Parameters [/h]
    [wiki="ID"]ID[/wiki] - the ID of the [wiki]Object[/wiki]
    [wiki="ID"]actor[/wiki] - the ID of the [wiki]Actor[/wiki] who caused the state change
    [wiki="Lock"]Lock[/wiki] - the new lock state of the [wiki]Object[/wiki]
    [h="2"] Return value [/h]
    Return [wiki]State[/wiki]::True if success
    [h="2"] Related pages [/h]
  2. -

  3.  
    [wiki]GetLock[/wiki]
    [wiki]OnLockChange[/wiki]
  4. -

  5.  
    [category]VaultMP interface[/category]
    [category]Scripting functions[/category]