Arisu Posted May 18, 2010 Posted May 18, 2010 Can you say what values in killer when player dies by himself (fall or his grenade) ?
50p Posted May 18, 2010 Posted May 18, 2010 Can you say what values in killer when player dies by himself (fall or his grenade) ? Well, server-side event passes false if the player died himself. I guess it's the same in this client-side event.
Arisu Posted May 19, 2010 Author Posted May 19, 2010 I tried to to rocket myself and check with this code function deathHandler (killer, weapon, bodypart) outputChatBox(getPlayerName(killer)) end and this gives me my name. So does this mean that if player kills himself, source == killer? (this is clientside) One more problem. I tried to use event onPickupSpawned (copied example from wiki), and it didn't work at all for me.
Jason_Gregory Posted May 19, 2010 Posted May 19, 2010 I tried to to rocket myself and check with this code function deathHandler (killer, weapon, bodypart) outputChatBox(getPlayerName(killer)) end and this gives me my name. So does this mean that if player kills himself, source == killer? (this is clientside) One more problem. I tried to use event onPickupSpawned (copied example from wiki), and it didn't work at all for me. No the Source isnt the Killer, 2 different Elements (okay when you kill yourself the elements should be the same). Paste your onPickupSpawned Event cause i only know OnPickupSpawn https://wiki.multitheftauto.com/wiki/OnPickupSpawn
Arisu Posted May 26, 2010 Author Posted May 26, 2010 root = getRootElement () addEventHandler ("onPickupSpawn", root, function () print ("onPickupSpawned trigger") end )
Dark Dragon Posted May 26, 2010 Posted May 26, 2010 you know that print only outputs the message in the server console, don't you? if not try outputChatBox
Arisu Posted May 27, 2010 Author Posted May 27, 2010 lol I do know that, I have weapon pickups dropped on death, I see my console and it doesn't give a print.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now