Hey all, less of a technical question and more of a where to start / direction to go in question, where I’m looking to build a system to enable scripting the movement, animations and audio of an NPC, but to remain completely dynamic to be able to react to the player and the environment.
E.g., say I have a sequence where I want the NPC to move from point A to point B while playing some animation montage blended on their upper body and speaking some voice line, but then the player wanders off some distance from the NPC, so it calls an interrupt on the NPC’s montage and their audio and such causing the NPC to stop, turn around to look in the players direction, and play another voice line like ‘hey, over here’ sorta thing, then when the player returns, the NPC resumes their montage and such.
At the moment, my current thought process is to override the Spline component, and override Spline points, add properties to the overridden spline points to enable triggering various things at each point like triggering a montage or voice line when they reach that spline point, and then in the overriden spline component I could use the tick function to track the players position and take actions based on whatever happens and program in my dynamic elements.
But before I sink a whole lot of time into pursuing that direction, I’m thinking there must be others with experience in dealing with scripting NPC’s similar to Sequencer but keeping it dynamic and responsive to environment, being able to have the NPC react to the player walking away, or reacting to unexpectedly getting shot at, etc, who can share what sort of approach they took, what worked and what didn’t, etc.