Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Script to Open Doors

Page: 1 of 1
 harIII
02-13-2009, 8:50 AM
#1
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.”
 Star Admiral
02-13-2009, 11:47 AM
#2
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
 harIII
02-17-2009, 8:43 AM
#3
Thanks and I'll try to continue to post my scripts in the future.
Page: 1 of 1