(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]
[B][wiki="ID"]ID[/wiki][/B] - the ID of the [wiki]Object[/wiki]
[B][wiki="ID"]actor[/wiki][/B] - the ID of the [wiki]Actor[/wiki] who caused the state change
[B][wiki="Lock"]Lock[/wiki][/B] - 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]
[LIST]
[*][wiki]GetLock[/wiki]
[*][wiki]OnLockChange[/wiki]
[/LIST]
[category]VaultMP interface[/category]
-
-
[category]Scripting callbacks[/category]
-
+
[category]Scripting functions[/category]
Pages in category "SetLock"
There are 0 pages in this section of this category.