Create a waypoint on spawn of object

  • Hi everyone !
    I'm working on a train game sandbox, and i want to use SWS for the rail system. I want to know : is there a way to create a waypoint on a path when i instanciate a gameobject ?

    Thank you <3

  • Hello & welcome to the forum.

    If you own SWS already, then you should definitely check out the runtime example scene, where a path is created via code at runtime. It does place multiple waypoints and "constructs" the path out of that, so yes, it is possible - waypoints are basically just game objects placed in the scene. To make it clear, you can use any (static) game object as a waypoint.

Log in to reply