Unit can be controlled but owned by player

tachiKC

New Member
Reaction score
3
Is there a way to make a unit owned by the player but unable to be controlled in any way? I want to make a unit that can still be upgraded by a player, but only moves where the triggers tell it to go/do and not where the player tells it to go/do.

Thanks.
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
You can do 1 of two things, or do the latter..

Optional: Create dummy upgrades that upgrade for those units, which are owned by a computer/passive player.


What you want prolly: Have those units classified, as ward. Then have them deselected upon selection from the owning player.


Not Reccomended: First, add locust to the units, then remove it. This makes them targetable by AoE spells, auto-engage, etc..
 

Levdragon

Member
Reaction score
2
Perhaps buy an item at shops when you buy it, it will die than create a trigger which upgrades your units?
 

esb

Because none of us are as cruel as all of us.
Reaction score
329
Depending on how many players you want, you can make a force be of another computer player. When a player upgrades, manually upgrade it for the computer player with triggers.
 

Meatwad

New Member
Reaction score
1
If a unit is issued an order, order him to stop. However, whenever you use a trigger to run the order, make it turn off the stop-order trigger, so that it bypasses the trigger.

Wouldn't that allow them to control the unit while it's moving to the ordered location?
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
an even better way is make a dummy unit with locust and add chaos to it to make it become your actual unit. your unit will be unselectable but still work as any other unit. it can be attacked by enemys and ordered/picked via trigger etc etc.

Edit: if you wanna see how it looks like if you are using locust + chaos i have attached a map. check it out!
 

Darthfett

Aerospace/Cybersecurity Software Engineer
Reaction score
615
Wouldn't that allow them to control the unit while it's moving to the ordered location?

That's why you turn the trigger back right after ordering. :p

Trigger - Turn off Stop
Unit - Order Unit to...
Trigger - Turn on Stop

It's a good way of bypassing infinite loops, or in this case, making it so that trigger orders bypass the trigger.

Just make sure you add a condition to the stop trigger, which checks to see if the order was not "stop", so that you don't get an infinite loop for that trigger.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top