I want a button in a dialog to act like the build ability in an scvs' command card.
Like instead of selecting supply depot in the command card I'd have a button in a dialog that I press to build/place the depot wherever.
Anyone know of a way I can do this? I've gone through all the triggers I can think of, when I use issue order it only allows the cancelation of abilities and trainable units not build/placeable units, which I'm looking for.
This wouldn't work in my case because I don't want the depot to spawn at a point after clicking the button, I want to click the button and be able to place the depot myself, is there a way to do this?
Edit: I just tried making the ability a variable and entered it into the order with no target but it still gives back an error looking for a target.. maybe there is no way to do it this way?
Is there a way to add an ability from the command card into a dialog that acts exactly like it would on the command card? I originally had tried to make a dialog button issue an ability order but it only works with instant abilities and not buildables like you could spawn a building but you could not activate the build ability and choose where to place it (showing and choosing placement)
you cannot have dialog items with a target. you can, track the position of the mouse with triggers and use the world position to cast something there.
tracking mouse is a costly event, causing lot of network traffic, so use it wisely.
Even if I did this, it would just spawn the building at the position of my mouse, no? I don't want the button to spawn the building I want it to activate the command ability so I can choose where to place the building myself.
Edit: Nvm this way is far too confusing I'll find a better way.
I want a button in a dialog to act like the build ability in an scvs' command card.
Like instead of selecting supply depot in the command card I'd have a button in a dialog that I press to build/place the depot wherever.
Anyone know of a way I can do this? I've gone through all the triggers I can think of, when I use issue order it only allows the cancelation of abilities and trainable units not build/placeable units, which I'm looking for.
the issue order action is a bit tricky. you have to click on the first "(" to select issue order with target point, not instant ability.
@FunkyUserName: Go
This wouldn't work in my case because I don't want the depot to spawn at a point after clicking the button, I want to click the button and be able to place the depot myself, is there a way to do this?
Edit: I just tried making the ability a variable and entered it into the order with no target but it still gives back an error looking for a target.. maybe there is no way to do it this way?
Is there a way to add an ability from the command card into a dialog that acts exactly like it would on the command card? I originally had tried to make a dialog button issue an ability order but it only works with instant abilities and not buildables like you could spawn a building but you could not activate the build ability and choose where to place it (showing and choosing placement)
Been looking for a way for days now :(
you cannot have dialog items with a target. you can, track the position of the mouse with triggers and use the world position to cast something there. tracking mouse is a costly event, causing lot of network traffic, so use it wisely.
@FunkyUserName: Go
Even if I did this, it would just spawn the building at the position of my mouse, no? I don't want the button to spawn the building I want it to activate the command ability so I can choose where to place the building myself.
Edit: Nvm this way is far too confusing I'll find a better way.