| 02-09-2010, 11:26 PM | #1 |
Changing the names of the root bone to head in the model. How Do I do this? I have no modeling experience. I just want a few custom models I have to be able to change pitch in game with code, and I heard this was the way to do it. Any Idea how to do this? |
| 02-09-2010, 11:40 PM | #2 |
1. Download Magos' Model Editor here 2. Open the model in Magos 3. Select "Windows -> Node Manager" 4. Right-click the helper (Balloon with an "i" inside) called "Bone_Root" or similar 5. Select "Edit Node" 6. Rename it into "Bone_Head" 7. Save 8. Enjoy! =D 9. Wrong Forum =P (PS: Let me know if it worked) |
| 02-10-2010, 06:26 PM | #3 |
Yep It Works. Thanks!, Also I added this at the helper. http://www.thehelper.net/forums/showthread.php?t=145620 and put you in the credits. Thanks. Code:
library SetupGame initializer InitA
function environment takes nothing returns nothing
call SetSkyModel( "Environment\\Sky\\LordaeronSummerSky\\LordaeronSummerSky.mdl" )
call FogEnableOff( )
call FogMaskEnableOff( )
call UseTimeOfDayBJ( false )
call SetTimeOfDay( 12 )
endfunction
function createUnitWithYawAndPitch takes nothing returns nothing
local integer myUnitType = 'Trac'
local unit myUnit
local real yaw = 90
local real pitch = 90
set myUnit = CreateUnit(Player(0),myUnitType,0,0,0)
call SetUnitFlyHeight(myUnit,400,0)
call SetUnitLookAt(myUnit,"head", myUnit,CosBJ(pitch)*CosBJ(yaw),CosBJ(pitch)*SinBJ(yaw),SinBJ(pitch))
endfunction
//===========================================================================
function InitA takes nothing returns nothing
call createUnitWithYawAndPitch()
call environment()
endfunction
endlibrary |
