Forum Jump :

Author Message

Posts: 1189

Level: Member

Country: tr
Occupation: Computer Science student
Age: 22
In-game name: Wak

#182208 Posted at 2015-08-23 10:18        
I have a unit running between obj1 and man1 just fine with this code:
_grp = createGroup west;
_unit = "B_Soldier_F" createUnit [position player, _grp];
_wp0 = _grp addWaypoint [getPos obj1, 0]; 
_wp0 setWaypointType "MOVE"; 
_wp1 = _grp addWaypoint [getPos man1, 0]; 
_wp1 setWaypointType "MOVE"; 
_wp2 = _grp addWaypoint [getPos obj1, 0]; 
_wp2 setWaypointType "CYCLE";

I am testing in ArmA 3 though, it might be an issue with older games.

Sometimes I like to think as I started the whole "earplugs" thing.

W0lle: The only advice I can give you is: Do not try to understand BI. You will not succeed and it only makes your brain go boom. I would even go so far and say that not even they understand their own actions :-D.

#define getDamage getDammage