Previous: , Up: Inventory   [Contents][Index]


10.8 Pickable Clip

Component: PickableClip

This component represents an ammo clip, this is needed for ’ModernGun’ and ’ClipInventory’ to know what type of ammo this is. To use, define an ammo type in the ’Clip Inventory’ component attached to your player. These are zero-indexed, meaning the first type in the list is 0, the second is 1, etc. You must define both NumClips and MaxClips for each type for it to work. Clip Types are numbered, not named. For example if you have two clip types, one for bullets and the other for plasma charges, bullets might be ClipType 0 and plasma might be ClipType 1.

Message on PickableClip: Pick ()

Adds this clip to the player’s Clip Inventory, but only if the player can hold it

Message on PickableClip: Pick ()

Adds this clip to the player’s Clip Inventory, but only if the player can hold it