generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
16
_module/nss/opw_autoshutlock.nss
Normal file
16
_module/nss/opw_autoshutlock.nss
Normal file
@@ -0,0 +1,16 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Auto Shut and Lock
|
||||
// opw_autoshutlock
|
||||
// By Don Anderson
|
||||
// dandersonru@msn.com
|
||||
//
|
||||
// Place this script in the Door OnOpen Event
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void main()
|
||||
{
|
||||
float fASD = GetLocalFloat(GetModule(),"ASD");//See opw_mod_onload
|
||||
DelayCommand(fASD - 2.0, ActionDoCommand(SetLocked(OBJECT_SELF,TRUE)));
|
||||
DelayCommand(fASD, ActionCloseDoor(OBJECT_SELF));
|
||||
}
|
||||
Reference in New Issue
Block a user