Im creating map and im very need gates.
1 problem - i cant find a nice model of gates.
2 problem - is there any other way to create a gates like a terran building with fly ability? just with other model?
There are several different "gate" models in the game. Make sure you've loaded the campaign dependencies and then you'll be able to see them. You've probably even encountered the gates at times in the campaign. Like the secret mission has several gates that open and close. I'm currently using gates in my map, and they work fine.
Note: You cannot rotate gates. Each angle has a separate unit.
Ok, thanks, im find how to add "open and close" ability. But anyway, its seems very strange.
1) We need to add a button with name Close gate with ID GateClose.
2) After this its automated added to gate in game. But, if i open gate and then select another unit gate became unclicked...anyway to change this?
And why this ability works even if i dont attach this in units data?? And why blizz delete it?? xD
Ok, im try to manually add ability "close" like if i was creating normal unit, but still i cant select gate after i deselect them after open gate command.
Oh yes, finally i got point!
Maybe it will help someone like me:
1) Create a new button with name Close Gate and ID GateClose (its very important!!!! If you name it other you will need to rename or create a new ability )
2) Then, switch to unit data, find a gate and add a new ability - DestructableGateblablabla BUT WITHOUT WORD LOWERED IN THE END!
3) Then, add a new button to command card.
4) Now you can try in, it will work.
After this, you will need to change some flags in ability DestructableblablalLOWERED, im using russian version of editor so i cant say how they localize this, there a 2 flags that you will need to delete, if you wish to reselect gate after open. Maybe its named like a unable to select...its easy.
You could also do what I'm doing, and just send the gate a command of "No value". This also causes the door to close. I'm not sure how to pick "No value" in the GUI menus for the commands, but I found it in one of the campaign mission triggers done this way and I just copied it from there.
I haven't had a need to do it before but pretty sure you can use a message to its actor to reclose them, or if you want the command button to do it you might have to duplicate its current one and replace the stuff it does with the action that'll close it instead, but yah I also noticed they only work one way in terms of what they'll do when that button is pressed.
I haven't had a need to do it before but pretty sure you can use a message to its actor to reclose them, or if you want the command button to do it you might have to duplicate its current one and replace the stuff it does with the action that'll close it instead, but yah I also noticed they only work one way in terms of what they'll do when that button is pressed.
What's sending message to actors?
How would I do that in order to close the door?
Create a new button object in the button tab.
Just select any button icon you like from the list.
Then go to the lowered version of the gate unit.
Go to the Command card select the button 2nd to the right on the bottom row.
You'll see an ability like the name of the gate on the list but no button.
Just add the button you created to it.
On the bottom right screen of the Data Window, with the list of linked objects to the gate.
Select the ability with the name of the gate
Then on the right go to the Ability -Commands and add the same button for execute.
You can rename the ability so its easier to remember, if you'd like to Close Gate.
With name of the gate in Editor - Prefix
By default, it isn't so straight forward.
For the trigger, just find the same ability to close the gate in the list.
Make sure its the exact same one or else it won't work.
I did not manage to make it work this time either.
I must admit you lost me a on a few points. Here's what I did:
I opened the Data Module (F7).
I went to the Buttons tab.
I searched for 'Hold Postion', and copy + pasted it. (Resulting in 'Hold Position Copy')
I went to the Units Tab, and searched for "Gate".
I brought up all the lowered gates.
I went to the ability tab for each gate.
I clicked on the "broken button".
I modified the broken button to use 'Hold Position Copy'.
I added an order to 'Hold Position' via trigger to my pre-placed gate unit. It did not work.
I'm pretty sure I should've done something between the last and second last step. You mentioned Ability Command?
When I check the Ability Command for the "broken button" there is nothing. (Ability, on the other hand, is a full list of different stuff.)
There is also "Command Type" and "Requirements" - I left those two alone as well.
@Phrosen: Go
I just went over the general things to do to set you on the right path.
For the button in the command card for the gate unit, change the command type to Ability and leave requirements none.
Select the ability thats the same name as the gate or similar.
Select the same ability above in the list of linked objects.
On the right, in the table of values, go to Ability - Command.
Add the button you made to Execute.
Note:
The ability to close the gate, is a morph type ability. By default the ability is named after the gate it will morph into.
Im creating map and im very need gates. 1 problem - i cant find a nice model of gates. 2 problem - is there any other way to create a gates like a terran building with fly ability? just with other model?
There are several different "gate" models in the game. Make sure you've loaded the campaign dependencies and then you'll be able to see them. You've probably even encountered the gates at times in the campaign. Like the secret mission has several gates that open and close. I'm currently using gates in my map, and they work fine.
Note: You cannot rotate gates. Each angle has a separate unit.
Ah, thank you! Im find a several gate models. Btw, if there ability that allow close them up? Im have only opening ability..
@Araxnid: Go
Yeah i had the same problem Some one else asked this question and i believe it was answered may b look for that post?
Ok, thanks, im find how to add "open and close" ability. But anyway, its seems very strange. 1) We need to add a button with name Close gate with ID GateClose. 2) After this its automated added to gate in game. But, if i open gate and then select another unit gate became unclicked...anyway to change this? And why this ability works even if i dont attach this in units data?? And why blizz delete it?? xD
Ok, im try to manually add ability "close" like if i was creating normal unit, but still i cant select gate after i deselect them after open gate command.
Oh yes, finally i got point! Maybe it will help someone like me: 1) Create a new button with name Close Gate and ID GateClose (its very important!!!! If you name it other you will need to rename or create a new ability ) 2) Then, switch to unit data, find a gate and add a new ability - DestructableGateblablabla BUT WITHOUT WORD LOWERED IN THE END! 3) Then, add a new button to command card. 4) Now you can try in, it will work. After this, you will need to change some flags in ability DestructableblablalLOWERED, im using russian version of editor so i cant say how they localize this, there a 2 flags that you will need to delete, if you wish to reselect gate after open. Maybe its named like a unable to select...its easy.
So anyway thanks for help xD
You could also do what I'm doing, and just send the gate a command of "No value". This also causes the door to close. I'm not sure how to pick "No value" in the GUI menus for the commands, but I found it in one of the campaign mission triggers done this way and I just copied it from there.
Sorry for hi-jacking this thread. Hopefully one of you who already replied will see this and help me with my problem.
I'm trying to make gates work properly. I have managed to open the gate via triggers. (Command card.)
But I can't for the life of me make the gate close via triggers. (Command card.)
I do not want to replace the unit. I just want to open/close the gate.
Please give me a step-by-step explanation of how it's done.
@Phrosen: Go
I haven't had a need to do it before but pretty sure you can use a message to its actor to reclose them, or if you want the command button to do it you might have to duplicate its current one and replace the stuff it does with the action that'll close it instead, but yah I also noticed they only work one way in terms of what they'll do when that button is pressed.
What's sending message to actors? How would I do that in order to close the door?
@Phrosen: Go
Just do the same thing that Araxnid did. You need to make a button for the close ability and then add it to the close ability.
Its how I got my gates to work.
I don't know how.
Apparently no one else knows how either..
@Phrosen: Go
Create a new button object in the button tab.
Just select any button icon you like from the list.
Then go to the lowered version of the gate unit.
Go to the Command card select the button 2nd to the right on the bottom row.
You'll see an ability like the name of the gate on the list but no button.
Just add the button you created to it.
On the bottom right screen of the Data Window, with the list of linked objects to the gate.
Select the ability with the name of the gate
Then on the right go to the Ability -Commands and add the same button for execute.
You can rename the ability so its easier to remember, if you'd like to Close Gate.
With name of the gate in Editor - Prefix
By default, it isn't so straight forward.
For the trigger, just find the same ability to close the gate in the list.
Make sure its the exact same one or else it won't work.
I did not manage to make it work this time either. I must admit you lost me a on a few points. Here's what I did:
I opened the Data Module (F7).
I went to the Buttons tab.
I searched for 'Hold Postion', and copy + pasted it. (Resulting in 'Hold Position Copy')
I went to the Units Tab, and searched for "Gate".
I brought up all the lowered gates.
I went to the ability tab for each gate.
I clicked on the "broken button".
I modified the broken button to use 'Hold Position Copy'.
I added an order to 'Hold Position' via trigger to my pre-placed gate unit. It did not work.
I'm pretty sure I should've done something between the last and second last step. You mentioned Ability Command? When I check the Ability Command for the "broken button" there is nothing. (Ability, on the other hand, is a full list of different stuff.) There is also "Command Type" and "Requirements" - I left those two alone as well.
@Phrosen: Go I just went over the general things to do to set you on the right path.
For the button in the command card for the gate unit, change the command type to Ability and leave requirements none. Select the ability thats the same name as the gate or similar.
Select the same ability above in the list of linked objects. On the right, in the table of values, go to Ability - Command. Add the button you made to Execute.
Note: The ability to close the gate, is a morph type ability. By default the ability is named after the gate it will morph into.
@aznbot256: Go
I manage to create a button for the gate unit - that works when I select the gate, and click the button.
However, there's no way to make the button work via triggers..
Phrosen all my gates work via triggers and work perfectly. Also i dont create any extra abilities or buttons. PM me if u want my help