generated from Jaysyn/ModuleTemplate
15 lines
422 B
Plaintext
15 lines
422 B
Plaintext
void main()
|
|
{
|
|
int iOpener = GetGender(GetLastOpenedBy());
|
|
|
|
if(iOpener != GENDER_FEMALE)
|
|
{
|
|
ActionCloseDoor(OBJECT_SELF);
|
|
ActionSpeakString("No way mister. This side is for the ladies.");
|
|
}
|
|
{
|
|
DelayCommand(8.0, ActionCloseDoor(OBJECT_SELF)); // Close the door 8 seconds after opening
|
|
// DelayCommand(8.0, ActionDoCommand (SetLocked (OBJECT_SELF, TRUE))); // Lock the door
|
|
}
|
|
}
|