Jump to content

Event


Recommended Posts

  • 2 weeks later...
  • 5 weeks later...
Posted

Projectiles are not synchronized so this cannot be done, at least for now the only thing you can do is have an approximate, but that can vary under certain circumstances. Why exactly would you need to look if the vehicle was hit by a projectile anyway? Use onClientExplosion as an alternative, and in case we are talking about a single scene you should be doing exactly this, and have it be attached through inside the function on to the vehicle you want to check for possible projectile explosions. Projectiles explode when they hit something (or time out), it should be about the closest thing you can do for now.

Posted
Attacker is player, not projectile.

And I think it would be even better to add onElementHitByProjectile

Check for the weapon id and check if the player is in a vehicle?

Maybe checking the weapon id is enough.

Posted

No, it's not. If you are talking about onClientPlayerWeaponFire, when throwing grenades it will not detect vehicle as a hitElement most of the time, unless it would be aimed very correctly.

Posted

onClientPlayerWeaponFire does not trigger with projectiles.

Projectiles are not necessarily always launched by a player weapon.

The only way is to do what I explained above.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...