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

Gates Animation

Status
Not open for further replies.
Level 3
Joined
Oct 23, 2005
Messages
51
For a while I've had a problem figuring out how to make a gate building do the open animation, however, I've finally figured it out. I now have another problem though, does anyone have any idea how to make a gate model rotated 180 degrees, seeing as how in the destructable section, there is a rotation field, which is absent in the unit one, so, if anyone has any idea how to get around it, or through it, it would be greatly appriciated, if someone has, for example, a "rotated" model, or someone knows a trigger or something to bypass it, their name, if nothing else, would be in the credits of "Twilight Islands".
 
Level 3
Joined
Oct 14, 2005
Messages
37
Not precisely. Many gates look different on each side, i.e. have a front and a back (see: demonic gate). For my AoS I created a copy of the gate destructible and fiddled with the rotation setting until it was facing the other direction. It is a different doodad that has to be placed, but has the correct orientation.
 
Level 18
Joined
Mar 7, 2005
Messages
824
i think he means something others.. as i read he has changed it to a normal unit with the gate model because he can build it.. and has added a open and close ability... anyway when he use the gate it has a wrong degree and he want that it changes about 180 degrees or 90degrees perhaps... i have the same problem... used gates that u can build in the map but two of them i have imported look in different directions.. i want that all are at the same degreee but u cant change the degree of a building (normal unit) in the doodad section there is a feature in the world editor which u can change the degrees of the doodad but not in the normal unit section... thats the problem i have and maybe he means the same ^.^
 
If he wants to have the gates avalaible to build, the builder must be able to build at least two types of doors, one horizontal and one vertical (or even diagonal, if he wants) with applying the correct pathing map. There is no other way, only maybe if the door could trasform to the other door which has different facing angle and pathing map.
 
Level 3
Joined
Oct 23, 2005
Messages
51
Sorry, I guess I made a mistake, first, I kinda meant 90 degrees, sorry for the mistake, anyway, my problem is that I simply need a gate model to be rotated these degrees, but I don't know how, as it's for a unit and rotation isn't a unit field... I imagine one could do it with a modeler, (somehow alter the default rotation) but I have only the most basic tools, can WCSear.ch's Modeler do that? Anyway, barring that I can use triggers if I have to, but I really don't want to.
PS: The basic gate also looks different. (Which I'm using)
 
Level 9
Joined
Sep 8, 2004
Messages
633
It is not possible for a non-moving unit to rotate as far as i know.

I have used gates in my maps as well, if you don't need them to be built by players, you can use doodads. The problem is that blizzard made the gate "open" animation to have the same tag as the "death" animation. Which means that if the gate is open, it's considered "dead" and when it's destroyed, you can close it again and it'll be back at 100% hp.

You can change the facing direction in the doodad editor section, i used that, it takes some messing around with, but it's pretty much possible to trigger a way into using the gates.

The basics you'll have to apply here are:

1- The even at your will can open/close the gate
2- When it's open, it's considered "dead", thus cannot be attacked.
3- If you want it to retain it's hp after being opened, save it to a variable when it "opens", restore it when it closes again.
4- If it gets destroyed, create a trigger that disables the former.

It's best to control gates in another way than using it as a unit with abilities, since you just can't rotate those. You can however create a seperate "unit" in for instance the shape of a lever, giving that abilities to open/close the nearby gate.

Goodluck!
 
Level 18
Joined
Mar 7, 2005
Messages
824
yeah sure.. but if the gate is buildable like a normal barrack or such u need to make it a unit, i dont think so that u can build doodads with a builder and it works good but i have just one problem:
the normal gates i use has horizontal direction and this is ok i want to use them.. but i have imported 2 gates and one is vertical and one is diagonal.. so i need them to be changed so that all 3 are horizontal that can be do by a modeler expecial of the modeler of the gate... but i hoped that there is another way (maybe its also useful to have gates at some other directions ^^ but i need them all to change in game and thats not possible with units as u said :( )
 
Level 3
Joined
Oct 23, 2005
Messages
51
Tr!KzZ, you have a vertical gate? If you can point to where it is or who the author is, assuming it is open to free acces, that would be all I need.
 
Level 4
Joined
Nov 9, 2005
Messages
113
Jaronis said:
Tr!KzZ, you have a vertical gate? If you can point to where it is or who the author is, assuming it is open to free acces, that would be all I need.
Everybody has a vertical gate, in the destructible section of the doodad section of WE, dude!
For each gate there is a:
vertical-, horizintal-, diagonal 1- and diagonal 2-version.
If you want to make it buildable you have to use the right gate model (the one you like) and the right pathing (the pathing of the gate you chose)
That's all.
8)
 
Level 3
Joined
Oct 23, 2005
Messages
51
No offense, but that kinda only works for doodads, as I've repeated before, the reason they're seprate doodads, because of a rotation feature in the doodad editor, which is NOT in the unit editor, as far as I've found they ARE the same model, just rotated.
 
Status
Not open for further replies.
Top