Skip to content

five-on-it / packages/sim/src/flyers / spawnFlyer

Function: spawnFlyer() ​

spawnFlyer(sim, cls, at, police?): number

Defined in: packages/sim/src/flyers.ts:118

Puts a flyer of class cls in the air at at, holding there (its input asks for no speed, at the height it starts at); police marks it the police's. Returns its entity.

Parameters ​

sim ​

SimWorld

cls ​

number

at ​

FlyerSpot

police? ​

boolean = false

Returns ​

number