FireProjectile: 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=Fires a projectile like rocket launcher| params=<syntaxhighlight lang="lua">(weaponid, position, r1, r2, r3, r4, r5, r6, r7)</syntaxhighlight> <poem>::weaponid: The weapon ID of the projectile ::position: The Vector position ::r1-r7 : These are float values in the range of -PI to PI</poem...")
 
No edit summary
Line 8: Line 8:
::position: The Vector position
::position: The Vector position
::r1-r7 : These are float values in the range of -PI to PI</poem>|
::r1-r7 : These are float values in the range of -PI to PI</poem>|
retvals=true, on success.|
relfuncs=*[[OnProjectileFired]]|
relfuncs=*[[OnProjectileFired]]|
}}
}}

Revision as of 16:45, 3 May 2023

This function was added in v1.6 beta 4 and will not work on previous versions.


Description:
Fires a projectile like rocket launcher


Parameters:

(weaponid, position, r1, r2, r3, r4, r5, r6, r7)

weaponid: The weapon ID of the projectile
position: The Vector position
r1-r7 : These are float values in the range of -PI to PI


Return Values:
true, on success.



Related Functions

The following functions may be helpful as they relate to this function in one way or another.