Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: ob1knb on July 05, 2020, 02:13:02 PM
-
I want the player to know where a character is going for a stealth prototype I'm working on.
-
Hi,
yes, it's possible, you should use the action NavMeshCalculatePath which returns a list of vector3 points and with this list you can then create a line using the line renderer.
Bye,
Jean
-
How can I add LineRenderer positions based on the Array?
-
Hi,
ah bugger, I though we had an action for that. Let me work on one and get back to you tomorrow on this. there is one that can draw a line between two objects, I'll modify it so that you can pass an array of points.
https://hutonggames.com/playmakerforum/index.php?topic=3943.msg88570#msg88570
Bye,
Jean
-
Any updates, or should I move on?
-
hi,
no no, I am on it :)
Bye,
Jean
-
Hi,
done :)
download DrawPathLineRendering from the Ecosystem browser and you can then control a lineRenderer positions. It's working differently then the DrawLine action, it expects a lineRenderer Component instead of creating one from scratch, which gives you a lot more control during editing this way.
Let me know how it goes.
Bye,
Jean
-
Works perfectly, Thanks
-
Hi,
Excellent! Thanks for letting us know.
Bye,
Jean