FireSniperRifle: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:
::dx, dy, dz = The normalized direction vector(from aimpos to target ) multiplied by 16.
::dx, dy, dz = The normalized direction vector(from aimpos to target ) multiplied by 16.
</poem>|
</poem>|
}}

Revision as of 03:52, 24 November 2022


Description:
This will send a packet to server which is filled by the following parameters.


Parameters:

( sniperid, aimposx, aimposy, aimposz, dx, dy, dz)

sniperid : The weapon ID of sniper (28 or 29) to fire.
aimposx : The x co-ordinate of aim position of NPC ( can be determined using server using player.AimPos or can be calculated artificially).
aimposy : The y co-ordinate of aim pos
aimposz : The z co-ordinate of aimpos
dx, dy, dz = The normalized direction vector(from aimpos to target ) multiplied by 16.


Return Values:
This function does not return any specific values.