It would be really nice if there were a mechanism where we could code AI behaviours for the npcs. I was thinking something along the lines similar to that of robocode (robocode.sourceforge.net/docs/robocode/). I've looked at the database for npcs and I see there is stuff in there for hunger and thirst etc. . .
NPCs have unique IDs and other identifiers so if you wanted you could build an AI for them, a crude way of doing it would be having a timer and checking/setting their position every few seconds
The first problem I see is that there is no NPC raycast to allow you to make them walk around obstacles.
Then ofc there should be methods such as NPCChangePositionEvent, or NPCCollisionEvent to handle things.
Most importantly I think an NPC inventory is missing with proper active slots like they player one, if that is implemented you could then have for example NPCs wielding picks mine for you, or wielding axes chop trees for you etc.
For now I think you can settle for making an NPC follow you or add small interactions when the player hits them
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von Minotorious ()
I've have been trying with what we have already (I will persist). Just more direct methods would make it easier!
I'm currently working on some basic flocking behaviour for chickens. Super still in the kitchen code