The patrolpoints page says theres two arguments for patrolpoints
- Code:
args[0] → TID of the next PatrolPoint in the path
But I am not understanding how to set that
- Code:
Actor patrolPoint = Actor.Spawn("PatrolPoint", (0,0,0));
int pptid = Level.FindUniqueTid();
patrolPoint.changeTID(pptid);
patrolPoint[0] = pptid;
This also does not work, because it's obviously not an array, but I'm just not understanding how to set the next patrol point
I'm trying to make a monster walk to a patrolpoint and pace around its location.
Normally once they reach the patrolpoint the goal gets set to null, so I'm trying to keep it from going null by setting the next patrolpoint tid to be the same patrolpoint