FireSniperRifle

From NPC for VCMP 0.4 Servers
Revision as of 03:52, 24 November 2022 by 127.0.0.1 (talk)
Jump to navigation Jump to search


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.