onlock

“onlock” specifies the script to run after the object is locked.