OnProjectileFired: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
(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...")
 
No edit summary
 
Line 6: Line 6:
params=<syntaxhighlight lang="lua">( playerId, weaponId, position, r1, r2, r3, r4, r5, r6, r7 )</syntaxhighlight>
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
::playerId : The ID of the player who fired the projectile
::weaponId : The ID of the projectile weapon which was fired.
::weaponId : The ID of the projectile weapon which was fired. Possible values are: 12 - 15, 30.
::position : The related position Vector.
::position : The related position Vector.
::r1-r7 : Float values which determine where the projectile will hit.|
::r1-r7 : Float values which determine where the projectile will hit.|

Latest revision as of 13:16, 4 May 2023

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. Possible values are: 12 - 15, 30.
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.