Arisu Posted May 18, 2010 Share Posted May 18, 2010 Can you say what values in killer when player dies by himself (fall or his grenade) ? Link to comment
50p Posted May 18, 2010 Share 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. Link to comment
Arisu Posted May 19, 2010 Author Share 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. Link to comment
Jason_Gregory Posted May 19, 2010 Share 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 Link to comment
Arisu Posted May 23, 2010 Author Share Posted May 23, 2010 It was onPickupSpawn, it didn't work Link to comment
Arisu Posted May 26, 2010 Author Share Posted May 26, 2010 root = getRootElement () addEventHandler ("onPickupSpawn", root, function () print ("onPickupSpawned trigger") end ) Link to comment
Dark Dragon Posted May 26, 2010 Share Posted May 26, 2010 you know that print only outputs the message in the server console, don't you? if not try outputChatBox Link to comment
Arisu Posted May 27, 2010 Author Share 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. Link to comment
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