Who break my breakable ?
Dears friends,
I have a little trouble with func_breakable. I'm able to set if a breakable is dead with register_think, but how to get the player that we destroy this breakable ? i've tried : read_data, EV_ENT_dmg_inflictor, EV_ENT_enemy, EV_ENT_aiment without sucess. read_data 0 return a number but no always the good player :( read_data 1 return always 1 read_data 2 the gun id read_data 3 ??? i don't know but it's is not possible that is a player because this number is the same that another. There is a solution with private read data ? Thanks ! |
Re: Who break my breakable ?
Quote:
could it be that 0 is the first attacker and not the destroyer? Sorry I don't have knowledge of this... |
Re: Who break my breakable ?
Maybe you coul'd check when players are shooting, and see if they are aiming at the breakable, and store the player id in a variable, so when the register_think detects that the breakable is destroyed, it will do whatever with the player id.
|
Re: Who break my breakable ?
I believe that the Ham Sandwich module by sawce may help here.
EDIT: Module will not help for example if a player did throwed a grenade into the window. |
| All times are GMT -4. The time now is 00:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.