Jump to content
Sign in to follow this  
giallustio

Problem with setWaypointSpeed

Recommended Posts

Here my function:

BTC_add_wp = 
{
_group = _this select 0;
_pos   = _this select 1;
_type  = _this select 2;
_beh   = _this select 3;
_comb  = _this select 4;
_form  = _this select 5;
_speed = _this select 6;
_wp = _group addWaypoint [_pos, 0];
_wp setWaypointType _type;
_wp setWaypointBehaviour _beh;
_wp setWaypointCombatMode _comb;
_wp setWaypointFormation _form;
_wp setWaypointSpeed _speed;
};

When i launch the code via:

[c,position player,"MOVE","CARELESS","YELLOW","COLUMN","FULL"] call BTC_add_wp;

c is group's name.

The wp is added correctly to the group but the command "setWaypointSpeed" doesn't work, units keep walking...Any advice?

Share this post


Link to post
Share on other sites

I think your problem is with setWaypointBehaviour "CARELESS". Try "AWARE" and the group should run.

Share this post


Link to post
Share on other sites

Thank you! It works now.

But i don't get it why a group can't move at full speed in "CARELESS" mode...

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×