Page 1 of 1

Small Lightsaber Question

Posted: Mon Jul 23, 2007 8:52 am
by Alpha-17
Does anybody know how to make a lightsaber turn on/off like Dart Sidious' lightsaber ? I didn't find it in the .odf's

THX for help, Alpha-17

Posted: Mon Jul 23, 2007 9:00 am
by EGG_GUTS
Here's a link to the same topic, the answer should be in there somewhere.

http://www.gametoast.com/index.php?name ... ic&t=10519

Posted: Mon Jul 23, 2007 9:07 am
by Alpha-17
Yeah nice topic ...
But there is no answer.

Posted: Mon Jul 23, 2007 9:11 am
by EGG_GUTS
Well maybe you should ask maveritchell, he got it working.

Posted: Mon Jul 23, 2007 9:11 am
by Teancum
That's controlled in the .combo file. If I remember right there's a verb something like TurnOffLightsaber.... something like that.

Posted: Mon Jul 23, 2007 9:36 am
by Caleb1117
Yes, but it has problems with saber throw, atleast thats what Maveritchell said.

Posted: Mon Jul 23, 2007 11:05 am
by Maveritchell
If you put the command "TurnOffLightsaber()" into the "IDLE" state in a combo, you can get the lightsaber turned off like Palpy's. Presumably you could stick it in any other state and get it to do the same, although it would be silly.

My problem was that the secondary attacks aren't "states," they're just lines in the .combo file. You can't get the lightsaber to just be off during a secondary attack. Also, if your saber is off most of the time (like Palpy's), then if you have the lightsaber throw attack, when you throw your saber you'll only throw the hilt. The problem is the same - you can't toggle TurnOffLightsaber() during a secondary attack.

If you're only looking to make a lightsaber like Palpatine's, though, all you need to do is find where it says this in the .combo file:
State("IDLE")
{
Duration(0.0); // infinite duration
EnergyRestoreRate(); // (0.0, "FromSoldier")
InputLock(0.15, "Sprint", "Jump", "Crouch");
And make it look like this:
State("IDLE")
{
Duration(0.0); // infinite duration
EnergyRestoreRate(); // (0.0, "FromSoldier")
InputLock(0.15, "Sprint", "Jump", "Crouch");
TurnOffLightsaber();

Posted: Wed Jul 25, 2007 4:39 pm
by Alpha-17
Ok I tried it and it works ... Thanks to all !!! :D