SelectWeapon: Difference between revisions
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 |
||
Line 1: | Line 1: | ||
{{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 |
Revision as of 18:26, 8 May 2023
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.