missleboy 0 Report post Posted August 17, 2007 hey im using the code getDefaultVehicle().setDamage(.01) and when this happens it critically wounds the person and says you will respawn in: 0. but nothing happens after that. someone has to eather shoot you once or you have to switch to the other team. its very weird. can someone help me on this? thanks, Brnet Quote Share this post Link to post Share on other sites
missleboy 0 Report post Posted August 17, 2007 i just tested it some more and it appars as thow the people dont die all the way because if you are in a vehicle you can still drive but it says in the plaer list that you are dead. also when they speak it dosent say (dead)playername: chat message.. every one on my server is just getting freeked out now Quote Share this post Link to post Share on other sites
mschoeldgen[Xww2] 0 Report post Posted August 18, 2007 To kill players via python you need to add a 'criticalDamage' to the soldiers armor component. Python can only set the damage to e.g. 0.1 and not 0 ( zero ) , the killing is then done by the 'hpLostWhileCriticalDamage' in short add these lines to your soldiers armor component: ObjectTemplate.armor.hpLostWhileCriticalDamage 1 ObjectTemplate.armor.criticalDamage 1 Also have a look at that python thread : http://bfeditor.org/forums/index.php?showtopic=7410 and this: http://bfeditor.org/forums/index.php?showtopic=176 Quote Share this post Link to post Share on other sites
missleboy 0 Report post Posted August 18, 2007 (edited) THANK YOU!!!! now it works just for laughs, this is what i got before Brent Edited August 18, 2007 by missleboy Quote Share this post Link to post Share on other sites