Jump to content

Home

Anyway to autoclose a transportation door?


randydg

Recommended Posts

Anyway to autoclose a transportation door? I have a door that when i go through i want the door to close so when i come back to that area later i have to reopen the door. sorta like the automatic doors we have in food stores.

Link to comment
Share on other sites

Originally posted by randydg

Anyway to autoclose a transportation door? I have a door that when i go through i want the door to close so when i come back to that area later i have to reopen the door. sorta like the automatic doors we have in food stores.

 

It depends a bit on what fires your area transition how to do it. In this example I assumed it is handled by a trigger just inside the door:

 

void main() {
   if (GetIsPartyLeader(GetEnteringObject())) {
       object oDoor = GetObjectByTag("TAG_OF_DOOR_HERE");
       NoClicksFor(0.5);
       AssignCommand(oDoor, ActionCloseDoor(oDoor));
       DelayCommand(0.5, StartNewModule("TRANSITION_AREA", "TRANSITION_TARGET_WP"));
   }
}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...