This site has been archived and made available for preservation purposes. No edits can be made.
SetLock
(Difference between revisions)
Return to current revision
-
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]
-
-
-
[wiki]GetLock[/wiki]
[wiki]OnLockChange[/wiki]
-
-
-
[category]VaultMP interface[/category]
[category]Scripting functions[/category]