Making a player-action only usable in an determined area

Hi, Im very new to Unreal and currently developing my first game, and one of the main player actions is dashing only between object shadows, does someone know how I can make so my dash will only work in an determined area (shadows)
thanks