GetAvailableWeapons

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

This function is to be added in v1.6 beta 4 patch 2 and will not work on previous versions.


Description:
Returns all the weapons possessed by npc as an array


Parameters:

NoParams


Return Values:
an array whose values are the IDs of the weapons possessed by the npc. The weaponid 0 (fists) is excluded.


Example

local a = GetAvailableWeapons();
SendChat("I have "+ a.len()+" weapons.");

Related Functions

The following functions may be helpful as they relate to this function in one way or another.