five-on-it / packages/sim/src/flyers / spawnFlyer
Function: spawnFlyer()
spawnFlyer(
sim,cls,at,police?,owner?):number
Defined in: packages/sim/src/flyers.ts:211
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, owner the player's whose it is (a client id; 0 nobody's). Returns its entity.
Parameters
sim
cls
number
at
police?
boolean = false
owner?
number = 0
Returns
number