If you need to keep that tag, an other approach is to store a local var in the object that was checked.
SetLocalInt(waypoint,"checked",TRUE);
But that won't work alone.
Or you can use different tag for your waypoints, and construct the tag.
tag = WP1,WP2,WP3 ectc....
int i =1;
String sTag = "WP" + IntToString(i);
While (isObjectValid(GetOBjectByTag(sTag)){
String sTag = "WP" + IntToString(++i);
}
Well something like that.
The "way to access the object" need to be altered so the object won't be accessed again. Or you have the problem of the infinite loop.
Modifié par Shallina, 02 avril 2012 - 04:11 .





Retour en haut






