Jump to content

Home

Script to Open Doors


harIII

Recommended Posts

I need a script to open a door once you have Bastila’s Lightsaber. I can’t get mine to work, I’m not sure I’m even putting the condition in the right spot. Can somebody give me a script please. Also if it is important, Bastila’s Lightsaber tag or template is “g_w_dblsbr006.”

Link to comment
Share on other sites

I need a script to open a door once you have Bastila’s Lightsaber. I can’t get mine to work, I’m not sure I’m even putting the condition in the right spot. Can somebody give me a script please. Also if it is important, Bastila’s Lightsaber tag or template is “g_w_dblsbr006.”

 

A general version of that script would be something like the following. Posting your version might help us figure something out.

 

void main() {
  if( GetItemPossessedBy( GetFirstPC(), "g_w_dblsbr006" ) != OBJECT_INVALID ) {
     object oDoor = GetObjectByTag( "doortag", 0 );
     ActionUnlockObject( oDoor );
     ActionOpenDoor( oDoor );
  }
}

 

- Star Admiral

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...