As title suggests, is there a way to build stuff by using a dialog button?
I have made the dialog window, button and an image for the button I just can't figure out how or if I can make it build something by clicking the button.
Rollback Post to RevisionRollBack
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
I was hoping to be able to use a dialog button the same way you would use a probe, drone or scv to build a structure but since I haven't gotten any help with that I had to settle for the next best thing. I currently have a dialog box setup with several buttons inside the dialog box that, when clicked, creates units at a designated location.
It works out pretty nice but I would still like to find an answer or at least be pointed in the right direction....
How can I get a dialog item button to build a structure based on where I click on the map? It needs to work just like a worker wanting to build but it uses the dialog box instead.
Rollback Post to RevisionRollBack
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
That works but its missing the hovering mouse model....I can't see where the structure will be placed until I click somewhere. I tried attaching an actor and a dialog (roughly the size of the structure) to the mouse but nothing works. Any suggestions?
Rollback Post to RevisionRollBack
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
I would maybe see if there is an effect or function of some sort that's built-in and creates the transparent building effect.
If there is, maybe that would work. Without playing around with it myself, I don't really have any ideas.
Actors of type "Splat" can to something like this. At least they show the round targeting models for aoe effects like psi storm. They could work for building placement as well as they are following the cursor but i never used them besides for aoe abilities.
As title suggests, is there a way to build stuff by using a dialog button?
I have made the dialog window, button and an image for the button I just can't figure out how or if I can make it build something by clicking the button.
Just an update and a shameless bump...
I was hoping to be able to use a dialog button the same way you would use a probe, drone or scv to build a structure but since I haven't gotten any help with that I had to settle for the next best thing. I currently have a dialog box setup with several buttons inside the dialog box that, when clicked, creates units at a designated location.
It works out pretty nice but I would still like to find an answer or at least be pointed in the right direction....
How can I get a dialog item button to build a structure based on where I click on the map? It needs to work just like a worker wanting to build but it uses the dialog box instead.
@bulletbutter: Go
Just real quick off of my head. I would try something like.
- - - - - - - - - - Trigger Clicked Dialog Button - - - - - - - - - -
[Event] Player Clicks Structure Dialog Button
[Action] Set Variable "ClickedStructureVariable" == True
[Then] Run Trigger "Build Structure"
- - - - - - - - - - Trigger Build Structure - - - - - - - - - -
[Event] Left Mouse Button Clicked
[Condition] [Comparison] ClickedStructureVariable' == True
[Action]
Create 1 Structure at Point of Mouse Clicked X/Y Set Variable "ClickedStructureVariable" == False - - - - - - - - - -
That's just off the top of my head. Will probably need tweaking, assuming it works.
@LegionofPhoenix: Go
That works but its missing the hovering mouse model....I can't see where the structure will be placed until I click somewhere. I tried attaching an actor and a dialog (roughly the size of the structure) to the mouse but nothing works. Any suggestions?
@bulletbutter: Go
Hmmm....
I would maybe see if there is an effect or function of some sort that's built-in and creates the transparent building effect. If there is, maybe that would work. Without playing around with it myself, I don't really have any ideas.
@LegionofPhoenix: Go
Actors of type "Splat" can to something like this. At least they show the round targeting models for aoe effects like psi storm. They could work for building placement as well as they are following the cursor but i never used them besides for aoe abilities.
@Slarti: Go
Could you give some hints on how to do that? Whenever I try to create an splat actor with triggers nothing at all seems to happen.