OnBulletFired
Revision as of 06:12, 8 October 2024 by Habi (talk | contribs) (Created page with "<poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;"> This function was added in v1.8 beta 4 and will not work in previous versions. </poem> <poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;"> This function is exclusive for 0.4.7.1 and will not work with previous server versions like rel006 or rel004. </poem> {{Welcome|desc=This function is called when a player (or another npc) fires a bullet with weapon.| param...")
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.