Rune_PRC8/_module/nss/opw_autoshutlock.nss
Jaysyn904 d1c309ae63 Initial commit
Initial commit
2024-09-13 09:10:39 -04:00

17 lines
522 B
Plaintext

////////////////////////////////////////////////////////////////////////////////
// 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));
}