OnProjectileFired
Revision as of 16:44, 3 May 2023 by Habi (talk | contribs) (Created page with "<poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;"> This function was added in v1.6 beta 4 and will not work on previous versions. </poem> {{Welcome| desc=This event is called when a projectile is fired by a player| params=<syntaxhighlight lang="lua">( playerId, weaponId, position, r1, r2, r3, r4, r5, r6, r7 )</syntaxhighlight> ::playerId : The ID of the player who fired the projectile ::weaponId : The ID of the projectile weapon which was...")
This function was added in v1.6 beta 4 and will not work on previous versions.
Description:
This event is called when a projectile is fired by a player
Parameters:
( playerId, weaponId, position, r1, r2, r3, r4, r5, r6, r7 )
- playerId : The ID of the player who fired the projectile
- weaponId : The ID of the projectile weapon which was fired.
- position : The related position Vector.
- r1-r7 : Float values which determine where the projectile will hit.
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.