Skip to content

five-on-it / packages/sim/src/escape / fireHook

Function: fireHook() ​

fireHook(sim, eid): boolean

Defined in: packages/sim/src/escape.ts:173

Fires the hook along a character's aim: on the line toward the anchor it caught (no gravity until it lands), a grapple event for every client to draw the line by (its origin, its heading, its pitch and its length). False when it caught nothing.

Parameters ​

sim ​

SimWorld

eid ​

number

Returns ​

boolean