Jump to content
Sign in to follow this  
lawman_actual

incorporating 'for each' in waypoint statement?

Recommended Posts

I'm struggling to make a 'for each' line work as part of a waypoint statement...I keep getting error messages saying I've provided 3 variables when two were expected.

I've tried the following ways of doing it:

	_usrtb13one setWaypointStatements ["true", "for '_i' from (count crew starthemtt13one) to 0 step -1 do {starthemtt13one deleteVehicleCrew (crew starthemtt13one select _i);}"];
_usrtb13one setWaypointStatements ["true", "{starthemtt13one deleteVehicleCrew _x} forEach crew starthemtt13one;"];

Thanks!

Share this post


Link to post
Share on other sites

_usrtb13one setWaypointStatements ["true", "{deleteVehicle _x} forEach crew starthemtt13one;"];

Share this post


Link to post
Share on other sites

I think he has another issue as the second one works fine

Share this post


Link to post
Share on other sites

My mistake ladies and gentlemen

I was simply using the wrong handle and trying to set waypoint statements for something that was not in fact a waypoint >_<

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  

×