FireSniperRifleEx

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search

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.