Skip to content

five-on-it / packages/sim/src/robots / makeRobot

Function: makeRobot() ​

makeRobot(sim, eid, kind): void

Defined in: packages/sim/src/robots.ts:68

Makes a character a robot of a kind (a ComplianceBot's hit points and armour; a robot dog's hit points and its short time lying when shoved). The caller spawned the body (a person's or a dog's).

Parameters ​

sim ​

SimWorld

eid ​

number

kind ​

number

Returns ​

void