D.murphy man 0 Posted November 9, 2002 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
Harnu 0 Posted November 9, 2002 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
D.murphy man 0 Posted November 9, 2002 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
D.murphy man 0 Posted November 10, 2002 come on,any one got the answer to this q Share this post Link to post Share on other sites
Chris Death 0 Posted November 10, 2002 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
D.murphy man 0 Posted November 10, 2002 thnx ill go off and try this now hopefully itll wrk*fingers crossed* Share this post Link to post Share on other sites
D.murphy man 0 Posted November 10, 2002 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
Chris Death 0 Posted November 10, 2002 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