HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Quick Question

08-16-2007, 10:38 PM#1
burningice95
How do you create a unit behind another unit?

I've looked at backstab triggers to try to figure it out but I can't....
08-16-2007, 10:41 PM#2
Histenchist
Trigger:
Melee Initialization
Collapse Events
Map initialization
Conditions
Collapse Actions
Unit - Create 1 Footman for Player 1 (Red) at ((Position of Peasant 0000 <gen>) offset by 124.00 towards ((Facing of Peasant 0000 <gen>) + 180.00) degrees) facing Default building facing degrees
Fixed it and works. You gotta have some offset or it will just be besides.
08-16-2007, 10:43 PM#3
cohadar
GetUnitFacing function returns the angle the units is facing interestingly enough.

So if A is facing direction alfa, just make B facing direction alfa,
and move him say 50 distance behind unit A in that direction