• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

foot attachment problem

Status
Not open for further replies.
Level 10
Joined
May 24, 2016
Messages
339
Hello, the problem is, I tried to add a model to unit's feet
JASS:
call AddEffectTarget("modelname",unit,"foot, left")
call AddEffectTarget("modelname",unit,"foot, right")
But the effect only applies to one left foot. Works for any models I tried to use. Any suggestions what is wrong?
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,877
Hello, the problem is, I tried to add a model to unit's feet
JASS:
call AddEffectTarget("modelname",unit,"foot, left")
call AddEffectTarget("modelname",unit,"foot, right")
But the effect only applies to one left foot. Works for any models I tried to use. Any suggestions what is wrong?
I don't think every model has those attachment points. It could be that they goofed and forgot to set the Right Foot point or accidentally positioned it on the wrong foot. But I would try different attachment names, maybe without the space.
 
Last edited:
Level 30
Joined
Aug 29, 2012
Messages
1,385
Does it work with this action?

JASS:
call AddSpecialEffectTargetUnitBJ( "foot right", GetTriggerUnit(), "Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl" )

(I have zero clue about JASS and the difference between your function and this one, I just converted the standard create special effect thing in the editor)
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,877
Does it work with this action?

JASS:
call AddSpecialEffectTargetUnitBJ( "foot right", GetTriggerUnit(), "Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl" )

(I have zero clue about JASS and the difference between your function and this one, I just converted the standard create special effect thing in the editor)
The difference in this case is basically none aside from the lack of a comma in "foot right" (which could actually fix it).

Here's your GUI function and the Jass equivalent:
gui to jass.png

Pretty much the same thing, Jass isn't so scary once you realize how similar everything is.

Anyway, notice how your AddSpecialEffectTargetUnitBJ function has a slightly different name than mine and the (parameters) that it takes are in a different order, that's because when converting a GUI function into Jass code it will be formatted differently. GUI (the standard Trigger Editor) uses special functions that rely on a Graphical User Interface -> the easy to use drop-down menus, windows, buttons, etc. But at the end of the day everything is converted into Jass code when you launch your map. The whole thing is sort of a mess, the Blizzard devs had to make two versions of each function, one for GUI and one for pure Jass.

So you're technically programming in Jass when you make standard triggers, just not directly.

@ToldYouSo
I noticed that you're calling AddEffectTarget(), I don't seem to have that function, is it a custom function? I only have AddSpecialEffectTarget() like you can see in the above picture. Maybe my plugin is missing it.
 
Last edited:
Level 10
Joined
May 24, 2016
Messages
339
Does it work with this action?

JASS:
call AddSpecialEffectTargetUnitBJ( "foot right", GetTriggerUnit(), "Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl" )

(I have zero clue about JASS and the difference between your function and this one, I just converted the standard create special effect thing in the editor)
There's no actual difference between this and that function, except the fact the BJ function seem unstable in save/load game.
Yeah maybe I should get rid of "," comma to make it work, wc3 works strange in some ways. Ill test it out once I'm finished with my shift.
I noticed that you're calling AddEffectTarget(), I don't seem to have that function, is it a custom function? I only have AddSpecialEffectTarget() like you can see in the above picture. Maybe my plugin is missing it.
Sorry just could not copy my source code function right now, yeah actually I do use AddSpecialEffectTarget. As @Chaosium noticed, I might try to remove comma symbol to make foot right work.
 
Status
Not open for further replies.
Top