Jump to content
Sign in to follow this  
D.murphy man

Script needed

Recommended Posts

i need a script tha makes the player die,or if possible loose health stedly wen a civillian comes near the player.

thnx for ur help.

Share this post


Link to post
Share on other sites

I don't have a script, but I have to ask, what is it going to be used as? Sounds quite odd.

Share this post


Link to post
Share on other sites

well its goin to be used for a zombie type mission,since i cnt make addons im goin to script it insted,but im crap at scriptin so thas y im askin.

Share this post


Link to post
Share on other sites

Ah yeah, by the number of posts here i thought it

might already have been answered and didn't look into.

You could use 1 trigger for that.

Size: as big as it covers all the area, where your civie's are

Activation: civilian/present

condition:

this AND "player distance _x < 50" count (thislist) > 0

OnActivation: player setdammage (getdammage player) + 0.5

This would add 0.5 damage to the actual damage value of the

player, once any civilian gets closer than 50 meters to the player.

~S~ CD

Share this post


Link to post
Share on other sites

damn it dident wrk,nuthin happend i did the trigger and went in game and i wlk up to them and nuthin at all

Share this post


Link to post
Share on other sites

hmm

Do you mean, the trigger didn't become active, or

you didn't notice anything happening after the trigger

became active?

Don't expect to loose a leg or an arm when receiving a

damage of +0.5.

e.g: the damage to die is: 1

the damage to be no more able to walk is: 0.95 (as far as i

remember).

You could test that by displaying a message instead of

that setdammage (or use both together).

The trigger, i posted above, works for sure.

~S~ CD

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
Sign in to follow this  

×