Basically I have a camera which I want to only be triggered by a specific characters
I have 3 characters, all children one unused parent class, lets call them “Red guy, purple guy and yellow guy”
Whilst it’s not hard to code, so I don’t have to have 3 seperate camera blueprints for each character to specifically trigger, I would like a way to use a variable to sort of quickly change the cameras intended character?
So for example I spawn in the blueprint, go to the right and change it to “red guy” so it is only triggered by red guy
and do the same for yellow and vice versa.
How would I go about this?
My teacher actually showed me how to do something like this but to be frank I kinda forgot.
I hope this makes sense