# [Solved]Variable-Set poossition of Variable X to a range of 5 in front of unit Footman?

Status
Not open for further replies.

#### daverave1212

Level 11
How can i make the following thing:
I made a point variable X and i want in a trigger to Set Position of X to range 10 in front of unit Footman.How do i do that?

#### Maker

Level 37
Point 1 = Position of unit
Point 2 = Point 1 offset by 5 towards facing of unit // point with polar offset

#### WaterKnight

Level 26
Set Variable --> choose your variable on the left side, on the right side take function "Point With Polar Offset", first parameter being the unit's position (Unit - Position Of Unit), 10 as second and the last parameter represents the direction, so guess with "front" of unit you mean the facing angle, which you can obtain with Unit - Facing Angle function.

#### daverave1212

Level 11
let me try
...

THAAAAAAAAAAAAAAAAAAANKs both of u my keyboard movement will work now i hope.anyway,the forward movement works

Last edited by a moderator:
Status
Not open for further replies.

Replies
3
Views
2K
Replies
9
Views
2K
Replies
3
Views
655
Replies
11
Views
861
Replies
4
Views
559