SelectWeapon: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
(Created page with "{{Welcome|desc=Sets the npc's current weapon and sends a sync packet if on foot.| params=(weaponid) <poem> ::weaponid : The Id of the weapon </poem>| retvals=true on success, false if the weapon is not possessed by npc.| relfuncs= *GetAvailableWeapons *GetAmmoOfMyWeapon |}}")
 
No edit summary
 
(One intermediate revision by the same user not shown)
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=(weaponid)
params=<source lang="lua">(weaponid)</source>
<poem>
<poem>
::weaponid : The Id of the weapon  
::weaponid : The Id of the weapon  

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.