The first answer to your first question is no, there have been a lot of whining that you can't do that and I have only seen a way to do it via clicking.
There's quite a few ways you can build towers using dialog buttons...
One would be to familiar with the data editor and make it so you have a super long range build ability on unit X and force the trigger to activate that ability on that unit.
Another would be to simulate it, give a fake movable object and detect mouse click using triggers (I am to assume this is why you had question 1).
I believe you can change the mouse cursor that might suffice to what you are doing.
The first answer to your first question is no, there have been a lot of whining that you can't do that and I have only seen a way to do it via clicking.
There's quite a few ways you can build towers using dialog buttons...
One would be to familiar with the data editor and make it so you have a super long range build ability on unit X and force the trigger to activate that ability on that unit.
Another would be to simulate it, give a fake movable object and detect mouse click using triggers (I am to assume this is why you had question 1).
I believe you can change the mouse cursor that might suffice to what you are doing.
Near end of tutorial he mentions that it can be used to detect who you are looking at using mouse. But it is for fps or 3rd person view so Nothing5 if you are planning on making it overhead perhaps you can do some customization.
In this case it would alot be easier to just create a build ability with a range of 360(256 * sqrt(2)), give it to an hidden unit and just delegate the dialog buttons to build orders for that unit. Thus you can use the splats etc.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Is it possible to detect my where my cursor is pointing at without clicking?
Also, how can I build towers using the Dialog Buttons?
For example, I click a button called "Phase Cannon". The tower placement thing will appear, allowing me to place the tower anywhere I want.
The first answer to your first question is no, there have been a lot of whining that you can't do that and I have only seen a way to do it via clicking.
There's quite a few ways you can build towers using dialog buttons...
One would be to familiar with the data editor and make it so you have a super long range build ability on unit X and force the trigger to activate that ability on that unit.
Another would be to simulate it, give a fake movable object and detect mouse click using triggers (I am to assume this is why you had question 1).
I believe you can change the mouse cursor that might suffice to what you are doing.
Actually someone made something that can do just that. Here's url http://forums.sc2mapster.com/development/tutorials/1626-trigger-how-to-target-with-mouselook-tracelines/#posts
Near end of tutorial he mentions that it can be used to detect who you are looking at using mouse. But it is for fps or 3rd person view so Nothing5 if you are planning on making it overhead perhaps you can do some customization.
In this case it would alot be easier to just create a build ability with a range of 360(256 * sqrt(2)), give it to an hidden unit and just delegate the dialog buttons to build orders for that unit. Thus you can use the splats etc.