GetSlotFromWeaponId: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Welcome| desc=This will return the id of the slot in the specified weapon usually stored| params=<syntaxhighlight lang="lua">( weaponid )</syntaxhighlight> <poem>::weaponid:...") |
No edit summary |
||
Line 4: | Line 4: | ||
<poem>::weaponid: The ID of the weapon whose slotid is to be determined | <poem>::weaponid: The ID of the weapon whose slotid is to be determined | ||
</poem>| | </poem>| | ||
retvals= Returns the value of the slot as integer. If invalid slot ( other than 0-9 is specified, it returns 0 ( slot of fists )| | retvals= Returns the value of the slot as integer. If invalid slot ( other than 0-9) is specified, it returns 0 ( slot of fists )| | ||
relfuncs=*[[GetPlayerSlotAmmo]] | relfuncs=*[[GetPlayerSlotAmmo]] | ||
*[[ | *[[GetPlayerSlotWeapon]] | ||
*[[GetPlayerArmedWeapon]] | *[[GetPlayerArmedWeapon]] | ||
}} | }} |
Latest revision as of 18:53, 26 November 2022
Description:
This will return the id of the slot in the specified weapon usually stored
Parameters:
( weaponid )
weaponid: The ID of the weapon whose slotid is to be determined
Return Values:
Returns the value of the slot as integer. If invalid slot ( other than 0-9) is specified, it returns 0 ( slot of fists )
Related Functions
The following functions may be helpful as they relate to this function in one way or another.