AI noticing Spotlight

Hi, i have made a flashlight for my game and now i want to do one thing, but i don’t know if it is possible or how to do that. That thing is - How do you make the AI Notice my spotloght? I wanted to make a AI with this mechanic. So is it possible?

1 Like

store a bool value and use it for saving the flashlight status, or check if the spotlight instance is enabled

2 Likes

That could work, i was thinking about doing that

1 Like

Do you need to AI to notice just the lighted area of the Spotlight, or whether the SpotLight is enabled?
If you need the AI only to notice where the light is shining then shoot some raycasts from the flashlight along where the beam limits are and check to see if they hit the AI.

3 Likes