obj.Equipment - originalfoo/Prison-Architect-API GitHub Wiki
Were you looking for
Equipment(materials.txtsetting)?
##Overview
This property is specific to Entity objects and indicates what type of equipment they have.
##Syntax
local equipped = someObj.Equipment -- string
someObj.Equipment = <number> -- PA Bug 9969Values:
- See "Notes" section below.
##Example
##Notes
In the game it seems that entities (such as Workman, Guard, etc) can be equipped with more than one item, yet the property only relates to a single item (PA Bug 10170).
The standard equipment available in the game includes:
0. 'None' - not carrying any equipment
'Fists'-
'Baton'(the one the guards use) -
'Club'(the improvised weapon) 'Shank''Knife''Fork'-
'Gun'(revolver) 'Spoon''Needle''Medicine''Scissors''Booze''Poison''Cigs''Saw''JailKeys''MobilePhone''Lighter''Screwdriver''Drugs''Sheers''Mop''Rake'-
'Hose'(does not turn people into firefighters) 'Spatula''WoodenSpoon''CleaningBrush''Hammer''Clipboard''Drill''PianoWire''Shotgun'-
'Iron'(clothes iron) 'MoneyBag''DogLeash'-
'DogBite'(what dogs use instead of fists) 'Tazer'-
'GuardUniform'(not an actual uniform) -
'PrisonerUniform'(not an actual uniform) -
'StabVest'(not wearable) -
'Torch'(flashlight) -
'Rifle'(sniper) 'Axe'-
'Spade'(shovel) -
'AssaultRifle'(M16) -
'SubMachineGun'(Mac10) 'WoodenPickAxe''BatteringRam''Megaphone''Book''BookClosed'-
'CbRadio'(walkie-talkie) 'Magazine''Snack''Soap''Photo'
The numeric values may change if materials.txt is edited (it's not clear what will happen in this scenario). A value of 0 will remove any equipment (just remove, not drop) and a value of 57 or above seems to leave the entity with their arms out holding some imaginary invisible object. Setting an invalid value will cause the game crash.
##See Also