View Single Post
Old 01-25-2003, 02:44 PM   #10
Chewbacca
Zartan
 

Join Date: July 18, 2001
Location: America, On The Beautiful Earth
Age: 50
Posts: 5,373
Aha! I found this at the NW Lexicon:

http://www.reapers.org/nwn/reference/
Quote:
ActionLockObject(object)
An action that will cause a creature to lock a door or other unlocked object.

void ActionLockObject(object oTarget);

Parameters
oTarget Door or placeable object that will be the target of the lock attempt.

Description
The action subject will lock oTarget, which can be a door or a placeable object.

Used in the script of a creature (or assigned to a creature) it will move that creature to the door and use its Open Locks skill to attempt to lock the door (or placeable).

Known Bugs
This action must be given to a creature. A crash will occur if you make a door lock itself by assigning this action to it. Use SetLocked() instead.

Ensure that the door has the 're-lockable' property set.


Version
1.22

See Also
functions: ActionCloseDoor | ActionOpenDoor | ActionUnlockObject | SetLocked
categories: Action on Object Functions
So it appears that Dreamer128 has the better script for closing and locking doors.
__________________
Support Local Music and Record Stores!
Got Liberty?
Chewbacca is offline   Reply With Quote