I'm trying to make my own kind of RTS game where units are created and automatically sent to attack the enemy base. I've made a lot of progress, but I'm stuck at one part. I want the units to automatically move toward the enemies base, and I don't want the player to be able to affect the movement except for maybe pausing the warpath and then resuming it; however, I do want the player to be able to use the unit's specific abilities whenever they want.
Any tips on how to effectively get this done? I don't want the user to affect movement, but be able to use the unit's special abilities.
You need to constantly order them via triggers or Issue Order effects to move to the base except when ordered to use one of the abilities. There are several validators able to detect when an ability is used/queued.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
First remove the move and attack button from units, but keep move and attack ablities on them. This way units will keep capablity to move and attack, but player have no command buttons to order.
Second you must deactivate smart click, otherwise player can order them to move or attack with right click.
Now you have a unit that can't receive move or attack orders from player, but with other abilities aviable. Now just need to create a permanent trigger to order, for example, any stoped unit to attack a enemy base
I'm trying to make my own kind of RTS game where units are created and automatically sent to attack the enemy base. I've made a lot of progress, but I'm stuck at one part. I want the units to automatically move toward the enemies base, and I don't want the player to be able to affect the movement except for maybe pausing the warpath and then resuming it; however, I do want the player to be able to use the unit's specific abilities whenever they want.
Any tips on how to effectively get this done? I don't want the user to affect movement, but be able to use the unit's special abilities.
You need to constantly order them via triggers or Issue Order effects to move to the base except when ordered to use one of the abilities. There are several validators able to detect when an ability is used/queued.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
First remove the move and attack button from units, but keep move and attack ablities on them. This way units will keep capablity to move and attack, but player have no command buttons to order.
Second you must deactivate smart click, otherwise player can order them to move or attack with right click.
Now you have a unit that can't receive move or attack orders from player, but with other abilities aviable. Now just need to create a permanent trigger to order, for example, any stoped unit to attack a enemy base
@arubaru304: Go Thanks! But wait, I'm not exactly sure how to deactivate smart click. Is this found in the unit's field values?
Edit - I found the disable smart click option in the trigger's actions. It can be found under the UI label.