OnBulletFired
Jump to navigation
Jump to search
This function was added in v1.8 beta 4 and will not work in previous versions.
This function is exclusive for 0.4.7.1 and will not work with previous server versions like rel006 or rel004.
Description:
This function is called when a player (or another npc) fires a bullet with weapon.
Parameters:
(weaponid, sourcepos)
- weaponid: The ID of the weapon with which the bullet was fired.
- sourcePos : This is vector and the value is the source position from where the bullet was fired. Approximately equal to position of player. See FireBullet.
Return Values:
This function does not return any specific values.
Related Functions
The following functions may be helpful as they relate to this function in one way or another.