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

SetLock

Sets the lock level of an Object.

[top]Declaration

Code cpp:
VAULTSCRIPT VAULTSPACE State (*VAULTAPI(SetLock))(VAULTSPACE ID, VAULTSPACE ID, VAULTSPACE Lock) VAULTCPP(noexcept);
Code c:
native Bool:SetLock(ID, actor, Lock:lock);

[top]Parameters

ID - the ID of the Object
actor - the ID of the Actor who caused the state change
Lock - the new lock state of the Object

[top]Return value

Return State::True if success

[top]Related pages