Pickup
One of your pickups, made with pickups.create.
Definition
Section titled “Definition”type Pickup = Readonly<{ id: number; model: number; pickupType: number; ammoOrMoney: number; interior: number; position: Vector3;}>;
type PickupSettings = { model: number; position: Vector3; pickupType?: number; ammoOrMoney?: number; interior?: number; virtualWorld?: number;};Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
id |
number |
The pickup’s ID. |
model |
number |
Its model. |
pickupType |
number |
The game’s pickup type: 2 comes back 30 s after it is taken, 3 is taken once, 8 money; see pickups.create. |
ammoOrMoney |
number |
The ammo or money it gives. |
interior |
number |
The interior, 0 outside. |
position |
Vector3 |
Where it is. |
Related
Section titled “Related”pickups.create: the settings,PickupSettingsplayerTookPickup