• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

unit order help

Status
Not open for further replies.

NerZhulen

N

NerZhulen

In my map, some units need to go from point A (spawn) to point B automaticly.
They need to belong to a player, but I need the player be unable to change theyr direction or interfere with them in any other way.

Please how do I do that?
 
You can create another Player, set these units to the other player, in Force Properties set the player with yourself and set it to Share Vision. Also change color of units to yours. So it would create an illusion that they belong to you, not sure if that's what you need though.
 
i agree with APproject
more detailed just go follow these steps
1- go to force properties menu
2- add a player
3- make an alliance of you and that player
4- check the shared vision as APproject said
5- press ok
here now the forces are done, about the coloring do as APproject said just change the units colors to your color which is basically an illusion for the player and at the end for the movement .
you need to create 2 Regions
1- Entrance
2- Final Destination
Note : Call them whatever you want, i used these names to get you the idea

and here is the trigger for the movement :

  • UnitMovement
    • Events
      • Unit - A unit enters Entrance <gen>
    • Conditions
      • (((Triggering unit) is A structure) Equal to False) and ((Owner of (Triggering unit)) Equal to Player 1 (Red))
    • Actions
      • Unit - Order (Triggering unit) to Move To (Center of Final Desitination <gen>)
Now i used owner of unit as player meanwhile you can set it to the player you want
move to order for the unit , will make the unit just walk and ignore everything in its way even if it is attacked , meanwhile if you want a dota style unit movement then u just change the Move To --- to --- Attack Move To and they will move towards the target point attacking any enemies of their owner player
regards,
 
Status
Not open for further replies.
Back
Top