Hi, I purchased ORK a couple of days ago and have been playing around with it. I wanted to ask, how do i create a waypoint that an NPC can move to then back to his original position.
I havent seen any tutorials on it and even some of the older topics dont have images anymore.
(Here I have my NPC, Cee'Ar, who has three waypoints added.)
Also, in the Combatants > Move AIs in the ORK editor there's a Waypoint Settings box that has fields for the stop distance, the no combatant radius, reset time and enabling random patrolling in the scene.
AFAIK, any "named" NPC that utilizes a Move AI or other Combatant component function, such as ORK-generated waypoints, must fall under the Combatant list. That's whether you fight them or not, since they're under a group as well (like Allies, for example.)
In the tutorial, there's a couple of NPCs in the Town scene that aren't fully fledged Combatants but they also don't have any Move AI associated and are basically inert objects that serve as a shop or such.
NPCs can be instantiated via script too but need their level, class, class ID, etc. initialized. so that may also be beyond what you need too.
Personally, for objects that don't require any interaction whatsoever and just moving around waypoints, I use DoTween. I use that for large flying crows in a graveyard scene I have since they can't use a Navmesh to wander.
Alternatively, you can also use Makinom (which is available for free) for this - it also includes a waypoint feature.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!