Waypoint spawn
TheTinman
Member Posts: 74
Is it possible to place one waypoint in an area in multiple places and get the same creature to spawn at each waypoint?
0
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/