Project Game: Close Your Eyes - Help needed please

Hi all, im creating a horror FPS and would need some serious help.
I have a idea that i can t make it work, so please if you could, say me how :slight_smile:

What i want:

I wanted something like full darkness that would follow the player , but when it touches the player, he dies ( instant death).

Something like a dark cloud of darkness, (particle emitter) that comes to the player and kills him.

BUT, IF the player is in a lighted area, the Darkness can not enter the Light created by light(spotlight for example).

It may sound a bit confusing :s

: darkness follow player, if touches him, player dies, if player is in lighted area, darkness can not enter.

obs: i have not implanted Health system to the player, hope it isnt needed since I need it to be Instant Death.
:stuck_out_tongue: thanks

Perhaps you could have your lights attached with a collider that would repel the particles? Or a trigger that tells the darkness to reverse it’s direction?

The idea of REVERSING the direction would be great.

So the Fog, or Darkness, would go back, and then come again once the player leaves the light, nice.

But still, the problem is i dont know how to scrip that :s im more about 3D modeling and texturing, really 0 at scripting .

Would it be possible to build a example for me? or post script?