- Give yourself a gun
- Shoot
- GetPlayerLastShotVectors()
- print() the result of GetPlayerLastShotVectors
Add this code to your script and you'll see for yourself:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ) { new Float:oX, Float:oY, Float:oZ, Float:hX, Float:hY, Float:hZ; GetPlayerLastShotVectors(playerid, oX, oY, oZ, hX, hY, hZ); printf("[debug] Weaponid: %d, oX:%f, oY:%f, oZ:%f, hX:%f, hY:%f, hZ:%f", weaponid, oX, oY, oZ, hX, hY, hZ); return 1;}