SelectWeapon: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
<poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;">
This function is to be added in v1.6 beta 4 patch 2 and will not work on previous versions.
</poem>
{{Welcome|desc=Sets the npc's current weapon and sends a sync packet if on foot.|
{{Welcome|desc=Sets the npc's current weapon and sends a sync packet if on foot.|
params=<source lang="lua">(weaponid)</source>
params=<source lang="lua">(weaponid)</source>

Latest revision as of 18:37, 8 May 2023

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


Description:
Sets the npc's current weapon and sends a sync packet if on foot.


Parameters:

(weaponid)

weaponid : The Id of the weapon


Return Values:
true on success, false if the weapon is not possessed by npc.



Related Functions

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