Skip to content

Using probabilistic picksups

Cody Howarth edited this page Mar 10, 2019 · 1 revision

Pickup name requirements

  • pickup name must be of the format [Type][Digit] where type is one of: Dice, Food, Drink, and digit is between 1 and 2^31.

Examples of valid pickupnames:

Dice1 , Food25 , Drink15

Usage

In order to use probabilistic pickups you will require two things:

  1. A "pickup" object in the prefab you desire.

  2. A pickup object with matching PickupName listed in the "Pickups": [] list for the trial which contains the prefab where the pickup object has been created (see the default RoadRage.json config file for a example from each of the pickup types).

Notes

  • The object in the json config and the object(s) in the prefab have a many to one ratio - i.e. There need only be one object specified in the config for an arbitrary number of objects across all prefabs. In this way, pickup specifications can be re-used when necessary. Conversely, a unique pickup specification can be created for each corresponding pickup in the game world (provided the names are unique).

Clone this wiki locally