ggxjimmy 0 Posted February 27, 2007 how do i make player B(the shooter) get the damage or damage set to 0(dead) when he shoots playerA dead thank you Share this post Link to post Share on other sites
Platoon_Patton 0 Posted February 27, 2007 <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">playerA addEventHandler ["killed", {(_this select 1 )setdamage 0}] Share this post Link to post Share on other sites
Big Dawg KS 6 Posted February 27, 2007 damage set to 0(dead) 0 damage is full health, not dead. Share this post Link to post Share on other sites
Platoon_Patton 0 Posted February 27, 2007 Just 1 digit wrong Quote[/b] ]damage set to 0(dead) Reading the question too good might cause errors Share this post Link to post Share on other sites
ggxjimmy 0 Posted February 27, 2007 yeh i noticed i got that wrong, but no harm. i want this script for multiplayer, so playerA is a variable. not just one dude in a single palyer map etc. can the code be changed that : (realplayerkiller) addEventHandler ["killed", {(_this select 1 )setdamage 1}] thanks, JImy Share this post Link to post Share on other sites