Please excuse me for asking so many questions.
I currently have:
- BP_Flashlight
- FirstPersonCharacter (BP)
My FirstPersonCharacter has a key input that toggles the light of the BP_Flashlight.
My BP_Flashlight has a Sphere Collision so it can overlap enemies and attract them to the player.
My goal is to set the radius of that Sphere Collision to 0 when the flashlight is off, and to ~340 when the flashlight is toggled on.
My problem seems to be I either can’t access the sphere from my FirstPersonCharacter, or I can’t access the key press from my BP_Flashlight.
I tried to create a public toggle Bool that would be set in the FirstPersonCharacter, and below you can see in the BP_Flashlight I’m trying to access that bool, but I’m not doing it properly.
I also clumsily attempted to make some form of Interface to utilize another bool that I theorized I could access between the two BPs but it did not pan out.
The warning reads: "First Person Character does not inherit from Sphere Collision (Cast to FPCharacter would always fail).
Any help would be greatly appreciated.