Want to build structures by using triggers, and thought that maybe it was easiest when I issue a building order to some unit. But I want the player to be able to place the structure as usual (with the greenish transparent footprints).
Any way this is possible? Have read through tons of stuff already and found only complex workarounds.
When you order a player-controlled unit to build a structure using Issue Order trigger it still shows the placement model regardless. I guess I don't understand the problem?
When you order a player-controlled unit to build a structure using Issue Order trigger it still shows the placement model regardless. I guess I don't understand the problem?
It doesn't for me. I have to specify a target (point/location) to place the structure in the Issue Order command. If I choose Issue Order without Target the unit doesn't even move an inch.
Can u tell me the command line for this to work like you just explained?
It doesn't matter to me whether I have a unit with the building ability or not, I simply want that when I press a dialog button I immediately enter placement mode for a certain structure.
So you want the hovering model of the building? I believe there is an event that detects whenever your mouse is moved. You'll probably have to use a separate trigger that fires every time your mouse moves to see if you have to move an actor for the placement model.
i assume you want something similar to the pylon placement on the spear of adun. the way you do that is to have a dummy unit with the ability (use the deploy pylon ability as reference) and then create a custom command card that is always attached to that dummy unit. you dont use dialog buttons per se.
So you want the hovering model of the building? I believe there is an event that detects whenever your mouse is moved. You'll probably have to use a separate trigger that fires every time your mouse moves to see if you have to move an actor for the placement model.
This is one of the complex workarounds I definitely want to avoid. Thanks for pointing out the approach, though.
i assume you want something similar to the pylon placement on the spear of adun. the way you do that is to have a dummy unit with the ability (use the deploy pylon ability as reference) and then create a custom command card that is always attached to that dummy unit. you dont use dialog buttons per se.
I don't really know what spear of adun is, because I never played LotV. But I'll look into the mechanics there. Thanks.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi guys,
Want to build structures by using triggers, and thought that maybe it was easiest when I issue a building order to some unit. But I want the player to be able to place the structure as usual (with the greenish transparent footprints).
Any way this is possible? Have read through tons of stuff already and found only complex workarounds.
Thanks!
@Winryamo: Go
When you order a player-controlled unit to build a structure using Issue Order trigger it still shows the placement model regardless. I guess I don't understand the problem?
<Click Here> To See My Epic Single Player Campaign (LifeForceCampaign.com)
It doesn't for me. I have to specify a target (point/location) to place the structure in the Issue Order command. If I choose Issue Order without Target the unit doesn't even move an inch.
Can u tell me the command line for this to work like you just explained?
EDIT: This thread describes my exact problem: https://www.sc2mapster.com/forums/development/map-development/693-building-units-with-dialog-buttons/
It doesn't matter to me whether I have a unit with the building ability or not, I simply want that when I press a dialog button I immediately enter placement mode for a certain structure.
@Winryamo: Go
So you want the hovering model of the building? I believe there is an event that detects whenever your mouse is moved. You'll probably have to use a separate trigger that fires every time your mouse moves to see if you have to move an actor for the placement model.
i assume you want something similar to the pylon placement on the spear of adun. the way you do that is to have a dummy unit with the ability (use the deploy pylon ability as reference) and then create a custom command card that is always attached to that dummy unit. you dont use dialog buttons per se.
Go play Antioch Chronicles Remastered!
Also, coming soon, Antioch Episode 3: Thoughts in Chaos!
Dont like mapster's ugly white? Try Mapster's Classic Skin!
This is one of the complex workarounds I definitely want to avoid. Thanks for pointing out the approach, though.
I don't really know what spear of adun is, because I never played LotV. But I'll look into the mechanics there. Thanks.