Hi!
I'm trying to create a daily routine for an NPC in Unity.
It should start at 9 am to move to a certain point, stay there for a while, move back and - ideally - despawn.
I'm using the "simple waypoint system"
I tried several approaches but ran into problems every time:
1 - NPCs stop moving when deactivated and reactivated.
2 - Same goes for instantiating and destroying.
3 - The Waypoint systems "stop" function stops everything. The NPC is incapable of moving afterwards. The pause function would require to put in a float value, which would be nastiest kind of hardcoding, since it doesn't correlate to the time of day. I don't like to discard it, it's actually a good system.
And lastly: For some weird reason the OnTriggerEnter function doesn't recognize my tags (except Player).
This should be easy, right? I spent an entire day failing at every attempt. I'd be glad if someone could helß (: