Skip to content

five-on-it / packages/sim/src/mods / dispense

Function: dispense() ​

dispense(sim, car): number

Defined in: packages/sim/src/mods.ts:319

Drops a charge of a vehicle's rear dispenser (the dispense key, at the wheel; the server's alone): a strip of caltrops or an oil slick lying square across its heading, MODS.dispenser.back behind its rear bumper, there for MODS.dispenser.seconds; returns the strip, or −1 for none (no charge left, no dispenser, a wreck).

Parameters ​

sim ​

SimWorld

car ​

number

Returns ​

number