- Documentation
- Shared functions
- unlockControls
Function
unlockControls
Releases an owner's locks: the given controls, or all of them when the list is omitted.
Syntax
bool unlockControls(mixed ...)Arguments
...mixed- Server:
player, owner[, controls]; client:owner[, controls].
Returns
true on success.
Example
lockControls(player, "kajdanki", { "fire", "sprint", "jump" })
setTimer(function() unlockControls(player, "kajdanki") end, 10000, 1)
See also
lockControlsLocks controls on behalf of an owner. A control comes back only when its last owner releases it, so several resources can lock it without unlocking each other. A resource's locks disappear when it stops.getControlLocksReturns the list of locks on a control as"resource:owner", for diagnostics. The server and the client have separate locks.