Code:
public Action:OnTraceAttack(victim, &attacker, &inflictor, &Float:damage, &damagetype, &ammotype, hitbox, hitgroup)
{
new weapon = GetEntPropEnt(attacker, Prop_Send, "m_hActiveWeapon");
new Float:vOrigin[3];
Entity_GetAbsOrigin(weapon, vOrigin);
}
Entity_GetAbsOrigin from smlib.
vOrigin is always 0.00.
Any help please? I mean, I need to get the thrown flashbang entity.
EDIT: Nevermind, I'm stupid, it was "inflictor"
__________________