OnCharacterDeath Funtions
Posted: Sun Jan 08, 2012 10:34 pm
I was looking at the docs and came across this, and it said:
CharacterDeath: function (player, killer).
How would I use this? I tried:
OnCharacterDeath(
function(player, killer))
but where would you put the outcome or what happens to the player or killer? To make it so the person who killed the other person got 75 sheild every time I tried:
OnCharacterDeath(
function(player, killer)
player, addsheild = "75")
but it didn't work. It seems that after further studying it applies to everyone when a unit is killed. How would you make it so when a player kills another player(AI or human) they get 75 shield?
CharacterDeath: function (player, killer).
How would I use this? I tried:
OnCharacterDeath(
function(player, killer))
but where would you put the outcome or what happens to the player or killer? To make it so the person who killed the other person got 75 sheild every time I tried:
OnCharacterDeath(
function(player, killer)
player, addsheild = "75")
but it didn't work. It seems that after further studying it applies to everyone when a unit is killed. How would you make it so when a player kills another player(AI or human) they get 75 shield?