Setting up horror game AI

Greetings,

I've recently wanted to implement something where if the lights (point light) are kept off for "x" amount of time the AI is to jumpscare the player.

Here is how it works out :

1. The player hears a noise, indicating a demon is in the room.
2.The player must turn on the lights (lamps) and stay next to a light source.
3a. The player has activated and stayed next to a light source for "x" amount of time deactivating the demon.
3b. The player does not turn on the light(s) and stay next to a light source for "x" amount of time, which leads to the player getting jumpscared.

PLEASE NOTE I AM NOT REALLY A PROGRAMMER.

Thanks, David
 
You may be able to use the built in tasks for this but if not you could use the bolt/playmaker integration to accomplish this.
 
Top