An scv is used to place the building.
When the building is placed a trigger captures the event and cancels the order.
The place where the building was supposed to be is then used to create the needed building.
When the building is created its model is then changed to the "placement" one (green one) via action.
The building is then rendered invincible and intargetable.
The problems:
I don't want to use an SCV. I want a building-builder. If I tie the ability to build to a building it cannot build because it cannot move.
I don't want the green building to be the "actual" building. How do Blizzards make it just the silhouette?
Right... so as far as I understood the building-placement in sc2 is done through actors (should have guessed that really :) ), so I believe I need a building-placing actor to appear near my mouse when I "use a dialog element" and then I will need another actor to appear where I "place the building". Finally I will remember the specified coordinates for the building placed in a variable and tell my AI to send a worker there to build the frickin structure. When that starts the latter actor disappears.
Now can anyone advice me on the names of the actors that I need?
Yes, and if you could expand a little bit on the "warp-gate-force-select" and "hide-a-worker" comments I would greatly appreciate this. In the end I only need the right actors to appear at the right time in the right place (and disappear likewise) and I don't care how that is implemented.
Right, I want to be able to place buildings like in Majesty series. This is how it should work: in my interface widow down below I should always have buttons responsible for construction. When I click on the needed building icon, my pointer should change it's form as it does when I issue an order to an SCV (say) to build something. When I then click on a suitable area, that place should then contain the green building silhouette till the end of the game. That's the mission for now. Please help me to implement it.
In original SC2 you have to pick an SCV to do this but I need to be able to do this without an SCV. I saw an "Issue order" trigger in the editor, but, once again it demands an SCV to function. How to do it without an SCV?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Right, this is where I am:
An scv is used to place the building. When the building is placed a trigger captures the event and cancels the order. The place where the building was supposed to be is then used to create the needed building. When the building is created its model is then changed to the "placement" one (green one) via action. The building is then rendered invincible and intargetable.
The problems: I don't want to use an SCV. I want a building-builder. If I tie the ability to build to a building it cannot build because it cannot move. I don't want the green building to be the "actual" building. How do Blizzards make it just the silhouette?
Right... so as far as I understood the building-placement in sc2 is done through actors (should have guessed that really :) ), so I believe I need a building-placing actor to appear near my mouse when I "use a dialog element" and then I will need another actor to appear where I "place the building". Finally I will remember the specified coordinates for the building placed in a variable and tell my AI to send a worker there to build the frickin structure. When that starts the latter actor disappears.
Now can anyone advice me on the names of the actors that I need?
Yes, and if you could expand a little bit on the "warp-gate-force-select" and "hide-a-worker" comments I would greatly appreciate this. In the end I only need the right actors to appear at the right time in the right place (and disappear likewise) and I don't care how that is implemented.
Jesus people is there a way to make a game where I click on the map and a building appears there????
Any ideas? Can't quite understand what trigger reads the current mouse coordinates.
Right, I want to be able to place buildings like in Majesty series. This is how it should work: in my interface widow down below I should always have buttons responsible for construction. When I click on the needed building icon, my pointer should change it's form as it does when I issue an order to an SCV (say) to build something. When I then click on a suitable area, that place should then contain the green building silhouette till the end of the game. That's the mission for now. Please help me to implement it.
In original SC2 you have to pick an SCV to do this but I need to be able to do this without an SCV. I saw an "Issue order" trigger in the editor, but, once again it demands an SCV to function. How to do it without an SCV?