lfnetwork.com mark read register faq members calendar

Thread: Script to Open Doors
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 02-13-2009, 08:50 AM   #1
harIII
Veteran
 
harIII's Avatar
 
Join Date: Feb 2008
Posts: 983
Helpful! 
Script to Open Doors

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.Ē
harIII is offline   you may: quote & reply,
Old 02-13-2009, 11:47 AM   #2
Star Admiral
N7 Commando
 
Star Admiral's Avatar
 
Join Date: Oct 2008
Location: Omega 4 Relay
Posts: 656
Current Game: Mass Effect 2
Folder extraordinaire Helpful! 
Quote:
Originally Posted by harIII View Post
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.

Code:
void main() {
   if( GetItemPossessedBy( GetFirstPC(), "g_w_dblsbr006" ) != OBJECT_INVALID ) {
      object oDoor = GetObjectByTag( "doortag", 0 );
      ActionUnlockObject( oDoor );
      ActionOpenDoor( oDoor );
   }
}
- Star Admiral
Star Admiral is offline   you may: quote & reply,
Old 02-17-2009, 08:43 AM   #3
harIII
Veteran
 
harIII's Avatar
 
Join Date: Feb 2008
Posts: 983
Helpful! 
Thanks and I'll try to continue to post my scripts in the future.
harIII is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > Holowan Laboratories > Script to Open Doors

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:40 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.