FireProjectile: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
</poem> | </poem> | ||
{{Welcome| | {{Welcome| | ||
desc=Fires a projectile | desc=Fires a [[Template:Projectiles|projectile]].| | ||
params=<syntaxhighlight lang="lua">(weaponid, position, r1, r2, r3, r4, r5, r6, r7)</syntaxhighlight> | params=<syntaxhighlight lang="lua">(weaponid, position, r1, r2, r3, r4, r5, r6, r7)</syntaxhighlight> | ||
<poem>::weaponid: The weapon ID of the projectile. Possible values are 12-15 and 30. | <poem>::weaponid: The weapon ID of the projectile. Possible values are 12-15 and 30. | ||
::position: The Vector position | ::position: The Vector position | ||
::r1-r7 : These are float values in the range of - | ::r1-r7 : These are float values in the range of -1 to 1</poem>| | ||
retvals=true, on success.| | retvals=true, on success.| | ||
relfuncs=*[[OnProjectileFired]]| | relfuncs=*[[OnProjectileFired]]| | ||
}} | }} |
Latest revision as of 15:20, 4 May 2023
This function was added in v1.6 beta 4 and will not work on previous versions.
Description:
Fires a projectile.
Parameters:
(weaponid, position, r1, r2, r3, r4, r5, r6, r7)
weaponid: The weapon ID of the projectile. Possible values are 12-15 and 30.
position: The Vector position
r1-r7 : These are float values in the range of -1 to 1
Return Values:
true, on success.
Related Functions
The following functions may be helpful as they relate to this function in one way or another.