I’m very sorry if this is a silly question, but I find myself stuck on a blueprint issue.
As a self-assigned study task, with the goal of improving my skill at blueprints, I have attempted to create a step-based, first-person movement system (somewhat like Etrian Odyssey) with larger, spidery-looking-security-camera enemies which should respond after the player takes a step, checking if the player is in their line of sight, and either prepare to fire a ranged attack if so or turn away if not. I have managed to get this working well for one enemy, but only one – as soon as I add more enemies using the same blueprint into the level, one (seemingly chosen at random, and not always the same one) acts according to the blueprint, whilst the others stay idling into one direction. I do not understand why this is, or what I should do to fix it. Please could anyone help?
Image 1 – Move controls for the first person character, calling the problematic ‘EnemyCheck’ function after a step has been completed. I know that there is an error on this, and believe that it is caused by something in the way that I connect the object cast to the ‘SpiderCam’ actor in the EnemyCheck function, but all changes I have attempted to make to it have resulted in the blueprint no longer working.
Image 2 – The EnemyCheck function, casting to the SpiderCam enemies. Is it something in this that’s causing the problem? I’ve tried getting all actors of class, or casting to the entire class, but the casting to the entire class will not compile, and the one I’m using currently, ‘get all actors of class’, still seems to work for only one enemy.
Image 3 – The ActionSpiderCam function used by the SpiderCam enemies when they are called to by the EnemyCheck function.
Please would it be possible to ask for an explained answer? I don’t feel that I’m very good at blueprints yet, and am worried that I may not know technical language or lack knowledge of a process everyone else may understand.
Thank-you very much in advance for your help, and I am very sorry for my lack of knowledge.