How to set PatrolPoint order if spawned using Actor.Spawn()?

Thu Feb 24, 2022 9:51 pm

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

Re: How to set PatrolPoint order if spawned using Actor.Spaw

Fri Feb 25, 2022 6:05 am

It's "patrolPoint.args[0] = pptid:"

Re: How to set PatrolPoint order if spawned using Actor.Spaw

Fri Feb 25, 2022 8:11 am

Thank you sir!