Skip to content

five-on-it / packages/sim/src/character / setBody

Function: setBody() ​

setBody(sim, eid, body): void

Defined in: packages/sim/src/character.ts:690

Gives a character another body (BODIES): its capsule made anew, standing on the same soles. A client's twin whose entity id came back as a dog (or a person) takes it so; nothing happens to one that has that body already.

Parameters ​

sim ​

SimWorld

eid ​

number

body ​

number

Returns ​

void