OnPlayerWeaponShot doesn't work for driver DB
#8

I have just made a very brief test with OnPlayerWeaponShot. I just created a filterscript with this simple code:

pawn Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
    SendClientMessage(playerid, -1, "OnPlayerWeaponShot has been called");
    return 1;
}
to test if this callback is called from vehicles. When I found it's not I was gonna open a thread, but then I found you MP2 are already reporting this issue.

Quote:
Originally Posted by MP2
Посмотреть сообщение
The guns on vehicles (seasparrow/hunter guns) work (they call OnPlayerWeaponShot). The reason is WEAPON_M4 IIRC.
I have just tested it and armed vehicles (like Rustler, RC Baron, Hydra, Hunter...) do NOT call OnPlayerWeaponShot, just like they don't (at least in previous versions) call OnPlayerGiveDamage. Ohh come on Kalcor, please fix both of these
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)