• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[Trigger] stucking units behind units at all times

Status
Not open for further replies.
Level 5
Joined
Apr 8, 2007
Messages
116
Alright, I have started on a new map..
I have not rushed right into it. Wanted to try to get it working first etc.
But I have a problem: I tried out different things, but I just cant get the players' units to be behind the horse Is there no way to make them stuck BEHIND the horse at all times? (In GUI..) Would appreciate your help :thumbs_up:
 
Level 11
Joined
Jul 12, 2005
Messages
764
Thx Gizmo, i just didn't want the Mini-game contest forum to turn into a GUI discussion..

You can do it with polar projection. It is 'Point with polar offset' in GUI.
Assuming that you store the horse and the unit to a variable, it should look like this:
  • Unit - Move <unit> instantly to (((Position of <horse>) offset by <range> towards ((Facing of <horse>) - 180) degrees)
Just put this in a periodic trigger, and do it with all players' units/horses.
 
Level 5
Joined
Apr 8, 2007
Messages
116
no problem, paskovich, and i get the point.. Sorry for any inconviniance.. And I think I have tried that, but im not sure. Wouldn't it become a problem if the angle of the horse would be less than 180? Would it then just end on 0? But I will look at it and try it out.

And Mechanical Man, yeah, thats what im going to do, and the players' unites will then be on the wagon..
Edit. It worked perfect! Thanks :thumbs_up:
Now to get the wagon attached.. Hmmm..
 
Status
Not open for further replies.
Top