Skip to content

five-on-it / apps/client/src/renderer/anim-state / weaponInHands

Function: weaponInHands() ​

weaponInHands(s, upper): string | undefined

Defined in: apps/client/src/renderer/anim-state.ts:224

The weapon a person shows in its hands with upper playing over its base (an upper clip or an upper one-shot): the name of its weapon (rocket launcher) when that clip holds, fires or winds one up (a guard's watch too), and it shows its weapon; none with empty hands, its fists, or anything else in them (a door, a phone).

Parameters ​

s ​

AnimInput

upper ​

string

Returns ​

string | undefined