Hey I was wondering how you would disable a certain player bp action in a level. I have multiple levels but I only want to disable an action in 1 of the level aka a flashlight. I not sure how though because if I disable it in the player bp it disables it for all the other levels. This is my flashlight bp in the player
ignore the “Mouse Y” and “Mouse X” on the 1st screenshot thats just to give sway with the flashlight. If anyone knows how to disable it for the certain level it would help out a lot!
You should have a Boolean variable in your character like bFlashlightAllowed and then branch based on it in the InputActionFlashLight event just before the FlipFlop node.
Now how to set this variable is up to you.
You can set it on BeginPlay in the Level blueprint. Get the player controlled pawn, cast it to your blueprint and set bFlashlightAllowed = false.
You can set it with a trigger volume. OnOverlap with the player pawn set bFlashlightAllowed = false (after a cast).
Or you can set it in your GameState before loading a particular level.