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
Small Lightsaber Question
Moderator: Moderators
-
Alpha-17
- Master Sergeant

- Posts: 165
- Joined: Mon Jan 22, 2007 2:26 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
-
EGG_GUTS
- Master Bounty Hunter

- Posts: 1626
- Joined: Thu Dec 07, 2006 7:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: CANADA!
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
http://www.gametoast.com/index.php?name ... ic&t=10519
-
Alpha-17
- Master Sergeant

- Posts: 165
- Joined: Mon Jan 22, 2007 2:26 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
-
EGG_GUTS
- Master Bounty Hunter

- Posts: 1626
- Joined: Thu Dec 07, 2006 7:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: CANADA!
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
-
Caleb1117
- 2008 Most Original Avatar
- Posts: 3096
- Joined: Sun Aug 20, 2006 5:55 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: X-Fire: caleb1117 ಠ_ಠ
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
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:
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:
And make it look like this:State("IDLE")
{
Duration(0.0); // infinite duration
EnergyRestoreRate(); // (0.0, "FromSoldier")
InputLock(0.15, "Sprint", "Jump", "Crouch");
State("IDLE")
{
Duration(0.0); // infinite duration
EnergyRestoreRate(); // (0.0, "FromSoldier")
InputLock(0.15, "Sprint", "Jump", "Crouch");
TurnOffLightsaber();
