playMaker

Author Topic: How to use MoveTowards for a navpoint grid using a single object type ?  (Read 1101 times)

secondsight

  • Playmaker Newbie
  • *
  • Posts: 24
Hey all !
I´m brand new to playmaker, so expect some n00b questions from me :)

I want to make a grid of navigation points. If the player clicks on any of these (instanced) objects, he moves to that position. Similar to this

I want to use the Move Towards command for a quick prototype. But this just let´s me point the player to a specific game object, either via selecting an object or defining a game object variable. What I would need instead is Move Towards an object type (a navpoint object in this case).

Another thing I´ve tried was to create the navpoint object onclick, but when the object is placed in the scene, it is has the suffix (clone) and cannot be identified by the MoveTowards command anymore.

I can´t figure out how to do this, because I cannot define an object type by other variable settings that could define a common specific (like material type for example).

So, how can I achive this with playmaker ? Can I use MoveTowards at all for this ?

Thanks !
« Last Edit: December 03, 2016, 08:53:11 AM by secondsight »