"Unit bones"?

megma

New Member
Reaction score
1
Alright, well I've been poking around in the JASS Manual. And I noticed this line of code

Code:
SetUnitLookAt	unit whichUnit, string whichBone, unit lookAtTarget, real offsetX, real offsetY, real offsetZ

Now this caught my eye because of, "whichBone". I looked into wc3's GUI, and apparently there's two, the head, and chest which can be tweaked twisted. So you can have a unit's head constantly spinning and his chest constantly spinning, but my question is. What about the legs?

Do the legs have a "Bone" or is it able to be tweaked and twisted?

Also, I was thinking of using this to make, well a martial arts spell, unit is hit up into the air and while it's falling (as if it was laying down so it'll hit its back when it lands) the caster smashes into the center of the target and sends it like a meteor into the ground crippling it and causing dmg.
 

Weep

Godspeed to the sound of the pounding
Reaction score
400
What bones a unit has depends on the model, I'm pretty sure. You should be able to find them and their names if you open the model in an editor.
 

megma

New Member
Reaction score
1
@ Weep
I would, but for what ever reason, the model editors don't work on my system. That is the main reason I asked :p other wise I'd find out for myself XD

@ _whelp
Mmm... damn so no constant name huh? That is gonna a pain =/
 

Narks

Vastly intelligent whale-like being from the stars
Reaction score
90
I think Jesus used this to make a marine look in one direction and walk in another.
 

Viikuna

No Marlo no game.
Reaction score
265
This is mostly used with some dummy models to create projectiles whose facing angle can be instantly set to something, which is pretty cool and everything.


But yea, you are right. You gotta rename those bones you want to rotate.

I didnt really get that your martial arts example. Do you want to rotate that guy who kicks, or the guy who is kicked in the air?
( There are better solutions than SetUnitLookAt for both of those cases, they are just different. )
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top