- Home /
Question by
_TIRAL_ · Aug 05, 2012 at 01:33 AM ·
How do I make an AI that tries to find the player?
I want an AI like the ones in the indie game "Hide" where he wanders around the map with a flashlight trying to find the player.
Comment
Answer by ScroodgeM · Aug 05, 2012 at 11:58 AM
nice idea... but what do you want we answer you? a ready AI package for your task? it's a not simple work and this place is not for job offers.
ask more specific questions like:
how to make a flashlight-looking effect?
simple use a spot lights
i have a flash light with specific angle of light cone and range, how to detect if player is visible/affected with this light cone?
check if angle between light forward direction and enemy-to-player direction is less then half spot light angle
check if distance to player is less then max distance of light
check if raycast to player hits player and not other geometry that can hide player