five-on-it / apps/client/src/renderer/anim-state / oneShotOf
Function: oneShotOf()
oneShotOf(
act,weapon,held?):string|undefined
Defined in: apps/client/src/renderer/anim-state.ts:230
The one-shot an act plays (fire by the weapon; a punch with a crowbar in the hand a swing of it); undefined for an act that lasts or none.
Parameters
act
"type" | "none" | "door" | "pickup" | "sit" | "dance" | "smoke" | "lie" | "lean" | "drop" | "search" | "plant" | "pick" | "defuse" | "repair" | "restrain" | "drag" | "hack" | "fire" | "use" | "phone" | "open" | "punch" | "knockout" | "throw" | "talk" | "shake" | "rummage" | "call" | "board" | "enter" | "exit" | "cower" | "climb" | "swim" | "bark" | "knock" | "point" | "handsUp" | "surrender" | "restrained"
weapon
number
held?
"box" | "laptop" | "toolbox" | "bomb" | "briefcase" | "crowbar" | "cash_bag"
Returns
string | undefined