• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Spell] Light Saber attachment ability should have a different color than the team color

Status
Not open for further replies.
Level 26
Joined
Feb 2, 2006
Messages
1,690
Hi,
I only found this thread so far which basically says you have to use a different texture or model: COLOR LightSaber3D
I want to use models like these LightSaber3D as attachment for my Jedi hero. I used the Tornado aura ability as base and it works just fine. However, it uses the team color of the hero. I want it to have a fixed color other than the player's team color and basically the colors used in Star Wars: Lightsaber crystal (I can't believe how much lore there is).
Is the only way to add different models to the map with different texture paths leading to the different team colors?
Its not THAT much work but maybe there could have been some easier way in the ability settings or with JASS and the new natives.
I use it as a unit ability and not as ability of an item since items can have owning players as well which might have affected the attachment color?
 

Antares

Spell Reviewer
Level 21
Joined
Dec 13, 2009
Messages
509
If you add the lightsaber not as an ability, but as a special effect with
JASS:
AddSpecialEffectTarget( "Lightsaber3D.mdx" , whichUnit , "hand left/right" )
you can change its team color with:
JASS:
native BlzSetSpecialEffectColorByPlayer            takes effect whichEffect, player whichPlayer returns nothing
 
Status
Not open for further replies.
Top