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.”
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
Thanks and I'll try to continue to post my scripts in the future.