• 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.

[General] model question

Status
Not open for further replies.

ABM

ABM

Level 7
Joined
Jul 13, 2005
Messages
279
hi,

i just dled a custom model to use it as a building unit...
but the facing of the model is awfull, it is a kind of rack with leather so it is very fin,
the problem is the unit show not its front but its side, so the model don't look good...

if it was a doodads it would be easy to turn it, but it is a unit building.
so, is there in the object editor field a way to choose the facing angle of a building model?
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
You can remove the building status, turn it and restore the building status but the facing will revert everytime you relocate the building for example.

The Unit - Create trigger action lets you define the angle.

There is also a trick with

JASS:
function SetBuildingFacing takes unit u, real a returns nothing
    call SetUnitPosition(u, GetUnitX(u), GetUnitY(u))
    call SetUnitFacing(u, a)
endfunction

but this only works if the structure is being rendered when it happens I believe.

Or just edit the model.
 

ABM

ABM

Level 7
Joined
Jul 13, 2005
Messages
279
the program can't start because d3dx9_35.dll is missing from your computer.
Try reinstalling the program to fix this problem.

it doesn't work.
i need to get the angle in editor 270.00 to be equal to the model angle 0.00
the editor turn automatically all model to 270, wich is not bad except for this specific model.
so to cheat i should make the model 270.00 angle is the full facing of the model (angle 0.00)

if not possible i will try to do it with trigger and unit create (angle), but it would be annoying.
 
Status
Not open for further replies.
Top