AHuman:EquipFirearm

From Data Realms Wiki

Jump to: navigation, search
Function
SyntaxEquipFirearm( * Whether to actually equip any mathcing item found in the inventory, or jsut report that it's there or not. )
Description:
Switches the currently held device (if any) to the first found firearm in the inventory. If the held device already is a firearm, or no firearm is in inventory, nothing happens.
ReturnsWhether a firearm was successfully switched to, or already held.




Example
DescriptionPlaceholder!
Code
  1. for k,v in pairs(PagesWithoutExamples) do
  2.     v.MakeExample(NoErrors);
  3. end
OutputPlaceholder!
Personal tools