Skip to content

five-on-it / packages/sim/src/drag / setDragging

Function: setDragging() ​

setDragging(sim, eid, dragging): void

Defined in: packages/sim/src/drag.ts:99

Sets whether a character drags a body, a client's copy of what the server says (its act): dragging and holding none yet, it takes hold of the nearest body lying within DRAG.snap that nobody drags; not dragging, it lets go. The local prompt then offers to let go or to hide the body, and the dragger walks at the server's pace.

Parameters ​

sim ​

SimWorld

eid ​

number

dragging ​

boolean

Returns ​

void