five-on-it / packages/sim/src/devices / blackoutNear
Function: blackoutNear()
blackoutNear(
sim,x,z,within?):number
Defined in: packages/sim/src/devices.ts:463
Blacks out the district of the substation nearest a point (a mission's or a debug command's doing): the one standing nearest, within its radius when within. Returns it, or −1.
Parameters
sim
x
number
z
number
within?
boolean = false
Returns
number