SetLocked(object, int)
Locks or unlocks a door or placeable.
action SetLocked( object oTarget, int bLocked );
Parameters
oTarget
The door or placeable to lock
bLocked
TRUE to lock, FALSE to unlock.
Description
Used by objects or creatures to set the locked status of an object or placeable without checking the Open Locks skill.
Remarks
Alternatively, ActionLockObject and ActionUnlockObject can be used on creatures so appropriate skill checks are made. Make sure, as well, that your door has the 're-lockable' box checked.
Version
1.22
Example
// Unlocked an object named DOOR_TAG void main() { object oDoor = GetObjectByTag("DOOR_TAG"); SetLocked(oDoor, FALSE); }
See Also
functions: | ActionCloseDoor | ActionLockObject | ActionOpenDoor | ActionUnlockObject | GetLastUnlocked |
categories: | Action on Object Functions |
author: Tom Cassiotis
Send comments on this topic.