PDA

View Full Version : Script for activating lightsaber


Lord2
05-08-2009, 05:38 PM
Hello dudes :thmbup1:

I was wondering if anyone knows how to activate a lightsaber with scripts... to turn on the blade.

...I know the rest, just can't get this to work.

Malxados
05-08-2009, 08:54 PM
You may wanna try to contact the guy who made this (http://knightsoftheoldrepublic.filefront.com/file/;77485). He probably knows.

GeorgNihilus
05-08-2009, 09:13 PM
This one will turn the saber on, should work for both Kotor or TSL:

void main(){
object oNPC = GetObjectByTag("VisasMarr");
DelayCommand(1.0, SetLightsaberPowered(oNPC, 1, 1, 1));

}

just change "VisasMarr" for the tag of whoever wields the saber.

and this one turns it off, almost same script:

void main(){
object oNPC = GetObjectByTag("VisasMarr");
DelayCommand(1.0, SetLightsaberPowered(oNPC, 1, 0, 1));

}

hope that helps, good modding ... :)