Setting blade type of weapon/item
How to set the blade type of a weapon/item including crystals, hilts, etc
Method 1
This method concerns setting the blade type of a specific weapon (meaning lightsaber weapons which are located in lua/weapons/)
First you must find something that looks similar to this:
SWEP.CustomSettings =
{
Blade = "Corrupted",
}
If there seems to be nothing like this in the weapon's file, then go ahead and add it. Depending on the blade you prefer you must replace the "Corrupted" (Or whatever other value that's there) text (See list of blade ids at the end of the article)
Method 2
This method concerns setting the blade type of a certain crystal, or any other item
First select the item you wish to edit in the directory lua/wos/advswl/crafting/items (If you want to create your own item for this please refer to this link: https://support.wiltostech.com/knowledgebase/21/Creating-your-own-Items.html)
You will see something similar to this:
ITEM.OnEquip = function( wep )
wep.CustomSettings[ "Blade" ] = "Corrupted"
wep.UseColor = Color( 0, 0, 255 )
end
What we specifically need out of this is the "wep.CustomSettings[ "Blade" ] = "Corrupted"", so if you don't see it go ahead and add it in
Your next step will just be to replace the "Corrupted" (Or whatever other value that's there) to your preferred blade (See list of blade ids at the end of the article)
Blade Type List
- Standard
- Unstable
- Corrupted
- Pulsed
- Pervasive
- Saw Tooth
- Mastered
- Smithed
- Dark Saber
- Cyclic Invert
- Swirl