Name of the attacker of an entity
i wish to know how to get the id of the player who attacks an entity, and the one who break it. im using fakemeta.
i have not much knoweldage with fakemeta, with other modules yes, but fakemeta isnt my strong point at all LOL |
Re: Name of the attacker of an entity
You'll probably want to use the ham sandwich module for this.
Look into Ham_TakeDamage and Ham_Killed |
Re: Name of the attacker of an entity
Quote:
should be like this? RegisterHam(Ham_Killed, "entity", "fw_PlayerKilled") |
Re: Name of the attacker of an entity
Pretty sure it does.
If you plan on replacing "entity" with the classname, yes. |
Re: Name of the attacker of an entity
thank you very much emp :D your help is to useful here :D
+k |
Re: Name of the attacker of an entity
it isnt working :S
im doint this PHP Code:
PHP Code:
PHP Code:
|
Re: Name of the attacker of an entity
If "ENT_CLASS_NAME" is not a normal classname for entities, then you will need to use RegisterHamFromEntity().
|
Re: Name of the attacker of an entity
Quote:
|
Re: Name of the attacker of an entity
doesent work O.o
im doing this (probably wrong coz y never used this LOL) Code:
public spawn (id) |
Re: Name of the attacker of an entity
Show the full code.
|
| All times are GMT -4. The time now is 01:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.