Jump to content

Home

[TSL]Ebon hawk doors


Mandalore252

Recommended Posts

The easiest way is probably to make a single control panel placeable template and place an instance of it on the wall next to all the doors that should be openable/closable. Check the Usable and Party interact options for it, and put a script in the OnUsed event that looks something like:

void main() {
   object oDoor = GetNearestObject(OBJECT_TYPE_DOOR);
   if (GetIsObjectValid(oDoor)) {
       PlaySound("evt_commopen");

       if (GetIsOpen(oDoor))
           AssignCommand(oDoor, ActionCloseDoor(oDoor));
       else
           AssignCommand(oDoor, ActionOpenDoor(oDoor));
   }
}

 

Whenever the placeable is activated it should open (if it's closed) or close (if it's open) the nearest door to the placeable.

 

This assumes that the doors are actually there in the normal Ebon Hawk set, only open. Otherwise you'd have to add the doors to the area first as well. Also, roaming NPCs are used to revolving doors and won't close any doors they open as they move around. If that bothers you you can add an OnOpen event script to the door template that automatically closes the door a few seconds after it has been opened if it was opened by an NPC.

Link to comment
Share on other sites

hmm... just wondering but y would u want to open and close them.... its just a bit... random.... no offence ment by that

 

I want that cause i think its more cool to be able to open and close doors on ebon hawk than just be able to talk with NPC's and see the cameras on the security console. I can't imagine a security console with just cameras.

 

For example: when you wanna "talk/practise" with handmainden you can close the door for no1 see what youre doing:lol:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...