So my question is: is there a way to make guys resume moving to locations, or is there a patrol setting that I am not aware of?
Ambient AI stuff is no good because the player may be more than 50 meters away from AI. The code below is how I am telling them to move to locations.
location [] flagLocations;
SetObjectAlwaysVisible(OBJECT_SELF,0);
flagLocations[0] = GetLocation(GetObjectByTag("way_left_0"));
flagLocations[1] = GetLocation(GetObjectByTag("way_left_1"));
flagLocations[2] = GetLocation(GetObjectByTag("way_left_2"));
flagLocations[3] = GetLocation(GetObjectByTag("way_left_3"));
flagLocations[4] = GetLocation(GetObjectByTag("way_left_4"));
flagLocations[5] = GetLocation(GetObjectByTag("e_center_spawn"));
command moveToFlags = CommandMoveToMultiLocations(flagLocations, FALSE, 0, FALSE); AddCommand(OBJECT_SELF, moveToFlags, TRUE, FALSE);
[b][/b]If there is no such thing, I am planning on using EVENT_TYPE_COMBAT_END, but this has the drawback that the AI will sometimes have to go backwards before they continue forwards, making them look really stupid. Thanks for the help.
Modifié par Capzason Achpea, 22 juillet 2010 - 10:55 .





Retour en haut






