Jump to content
Official BF Editor Forums
Sign in to follow this  
missleboy

Killing A Player

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...