Bullet collision
#1

When bullet collides with custom object then OnPlayerWeaponShot isn't called. Is there any fix or workaround?
Reply
#2

Hmm, i never knew that. Well you can use ColAndreas i guess.
Reply
#3

It works fine for me. Maybe you have a mistake in your code. Try this:

Code:
public OnPlayerWeaponShot(playerid,weaponid,hittype,hitid,Float:fX,Float:fY,Float:fZ)
{
printf("playerid=%d,weaponid=%d,hittype=%d,hitid=%d,Float:fX=%f,Float:fY=%f,Float:fZ=%f",playerid,weaponid,hittype,hitid,fX,fY,fZ);
return 1;
}
Reply
#4

For me it won't be called when hitting custom object.
https://www.youtube.com/watch?v=_vvHbBw3IMM
Reply
#5

Is it dynamic object? Check OnPlayerShotDynamicObject.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)