| 12-30-2003, 06:48 PM | #1 |
I was working on My Mod to try to make units look like they Are flying I talked to kattana and he had make a need Little Script that sets units bones. But i soon discovered that it only works on chest and head bone(blizzard lazyness!) So i took matters into my own hand and with a quick mdl edit (string change i got it to work for the whole unit the possibilities are endless!) heres the md steps! 1. convert the unit model you want to use into mdl format . 2. Find the orgnal Bone "Bone_Head" { bone head string replace it with "Bone_213" or any string you want! 3. Look for Root bone Bone "Bone_Root" { string replace it with Bone_Head. 4. save convert back to mdx load into map! 5. add the jass Thanks kattana. here is the jass needed gose in map header! function UnitRotateBone takes unit whichUnit, string whichBone, real angle, real pitch, boolean fromFacing returns nothing if ( fromFacing ) then set angle = angle + GetUnitFacing(whichUnit) endif if ( pitch == 90.0 ) then set pitch = 89.999 endif call SetUnitLookAt(whichUnit, whichBone, whichUnit, 10000.0*Cos(angle*bj_DEGTORAD)*Cos(pitch*bj_DEGTORAD), 10000.0*Sin(angle*bj_DEGTORAD)*Cos(pitch*bj_DEGTORAD), 10000.0*Tan(pitch*bj_DEGTORAD)+90.0) endfunction Trigger to use it! Melee Initialization Events Unit - A unit enters Region 000 <gen> Conditions Actions Unit - Order (Triggering unit) to Stop Wait 0.00 seconds Custom script: call UnitRotateBone(GetTriggerUnit(), "Head", 0, 120, true) Heres a screen shot of what I mean! Now you can rotate units on the X axis with out using 3dmax! |
| 12-30-2003, 07:29 PM | #2 |
I was just going through sending out PMs to get people to let me put their tools on my website and I saw this. Great work both of you. This is gonna be uber-useful, especially in my Hordes of Darkness. 35263526 |
| 12-30-2003, 07:46 PM | #3 |
neat I idea you can make unit do Cartwheel using this or even make or make it doge an attack for real! If any one has any questions on how to make this work for you please post and if you have done a cool trick with this post as whell what you have done with a screen shot to give other good ideas! |
| 01-03-2004, 08:03 PM | #4 |
Great, really neat, but I think I am going to unsticky this because with the incredibly big number of sticked threads we have people is tending to ignore them. I think more people will look at this if I unsticky it |
