Randomize Waypoint patrol RPG

Lecture Ref: 5_IN_RPG

If one wanted to randomize the patrol route, how could one do that?

I tried adding something like this to PatrolBehaviour().

currentWaypointIndex = Random.Range(0,patrolPath.Length);

Not sure if i am on the right path or not.

Cheers,

Jon

Privacy & Terms