Structs:DropItem
Jump to navigation
Jump to search
DropItem is a struct that can be obtained through the GetDropItems Actor function. Instances of this struct are stored in a linked list. Drop items can only be modified through the DropItem Actor property, which is utilized to determine what items the actor drops upon being killed. It also has an alternative usage by the RandomSpawner class, which uses it to determine what actor to spawn.
Variables
- native readonly DropItem Next
- Pointer to the next DropItem instance in this linked list.
- native readonly name Name
- Name of the Actor class type to drop/spawn. Note that this is a Name, not a class<Actor> field, which means the class it stores is not guaranteed to exist.
- native readonly int Probability
- Probability of the Name Actor class to be spawned.
- native readonly int Amount
- Amount of the Actor class to be spawned.
Examples
Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated. |