- Home /
assign waypointcircuit to waypointprogresstracker at runtime
Hi,
I'm trying to set up various waypointcircuits in an open world but cannot figure out how to dynamically assign waypointcircuits to the NPC's waypointprogresstracker at runtime. I'm using the standard assets for cars but am having a heck of a time trying to assign a circuit attached to different gameobjects. It seems that the waypointcircuit component is not accessible from other gameobjects and I can't figure out how to fetch it from the progress tracker or make a script to connect the two. Any help would be greatly appreciated.
Answer by theunsigned · Jan 06, 2020 at 11:29 PM
It didn't do exactly what I wanted but I learned about root, getcomponentinparent, and getcomponentinchild and that helped a lot. I decided to manually set up different routes in my large map for individual races so dynamically doing it was no longer an issue.
Your answer
Follow this Question
Related Questions
waypointprogresstracker and runtime leaderboard 1 Answer
Camera rig warning! Auto Cam Script 1 Answer
Standard Asset Car won't shift past 3rd gear yet coding is set to 5 gears. 1 Answer
How to make a GPS director arrow in a racing game? (Like in EASPORTS's NEED FOR SPEED) 0 Answers
Unity Starter Asset First person controller camera problem 1 Answer