FireSniperRifleEx: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<poem style="border: 2px solid #d6d2c5; background-color: #ADD8E6; padding: 1em;"> This function has been added in v1.6. </poem> {{Welcome| desc=T...") |
No edit summary |
||
Line 9: | Line 9: | ||
::aimdir = The normalized direction vector(from aimpos to target ) multiplied by 16. | ::aimdir = The normalized direction vector(from aimpos to target ) multiplied by 16. | ||
</poem>| | </poem>| | ||
relfuncs=*[[FireSniperRifle]] | |||
}} | }} |
Latest revision as of 19:48, 9 January 2023
This function has been added in v1.6.
Description:
This will send a packet to server which is filled by the following parameters.
Parameters:
( sniperid, aimpos, aimdir)
sniperid : The weapon ID of sniper (28 or 29) to fire.
aimpos : The Vector aim position of NPC ( can be determined using server using player.AimPos or can be calculated artificially).
aimdir = The normalized direction vector(from aimpos to target ) multiplied by 16.
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.