Yes. Assuming every waypoint has the same tag, you can use the second parameter of GetObjectByTag to refer to each one uniquely.
Notice that the first waypoint is number 0, not number 1!
For example,
int n =-1;object oWay =GetObjectByTag("my_waypoint",++n);while(GetIsObjectValid(oWay){CreateObject(OBJECT_TYPE_CREATURE,"my_creature_resref",GetLocation(oWay)):
oWay =GetObjectByTag("my_waypoint",++n);}
Comments
Notice that the first waypoint is number 0, not number 1!
For example,
while (GetIsObjectValid(oWay) is causing an invalid declaration type error.
{
int n = -1;
object oWay = GetObjectByTag("my_waypoint", ++n);
while (GetIsObjectValid(oWay))
{
CreateObject(OBJECT_TYPE_CREATURE, "my_creature_resref", GetLocation(oWay));
oWay = GetObjectByTag("my_waypoint", ++n);
}
}
This fixed it. Thanks alot. It works great.
https://www.facebook.com/groups/nwncp/permalink/4123523214328520/