Jump to content
Premonitionswow

How to apply damage to player as distance decreases

Recommended Posts

Hello!

I am trying to have a player take damage and have blurry vision from an object (or person) which intensifies as they get closer to it, such as an irradiated object. 
The script would probably look something like:

<
while (true) do
{getdist obj1 - obj2;
if dist < 5 then (_i = getdammage player;
 player setdamage _i + 0.1
hndRadBlur ppEffectAdjust [_x + 0.1 , _x + 0.1, _x + 0.1, _x + 0.1];)
else ()
};
>

Any help would be much appreciated! Thank you!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×