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

SetLock

This is an old revision of this page, as edited 07-15-2014, 07:43 PM by Koncord (contribs). It may differ significantly from the current revision.
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


GetLock
OnLockChange