Class SharedPickup
Class representing a pickup element
Assembly: SlipeShared.dll
Syntax
public class SharedPickup : PhysicalElement
Properties
|
Improve this Doc
View Source
Ammo
Gets the ammo in the pickup if it's a weapon pickup
Declaration
Property Value
|
Improve this Doc
View Source
Amount
Gets the amount of health or armour stored in the pickup
Declaration
public int Amount { get; }
Property Value
|
Improve this Doc
View Source
PickupType
Gets the type of the pickup
Declaration
public PickupType PickupType { get; }
Property Value
|
Improve this Doc
View Source
WeaponModel
Gets the weapon type of the pickup if it's a weapon pickup
Declaration
public SharedWeaponModel WeaponModel { get; }
Property Value
Methods
|
Improve this Doc
View Source
Morph(PickupModel)
Morphs the pickup into a GTA custom pickup
Declaration
public bool Morph(PickupModel model)
Parameters
Returns
|
Improve this Doc
View Source
Morph(PickupType, Int32, Int32)
Morphs the pickup into a pickup of a different type
Declaration
public bool Morph(PickupType type, int amount, int ammo = 50)
Parameters
Returns
|
Improve this Doc
View Source
Morph(SharedWeaponModel, Int32)
Morphs the pickup into a weapon pickup
Declaration
public bool Morph(SharedWeaponModel weapon, int ammo = 50)
Parameters
Returns
|
Improve this Doc
View Source
Morph(Int32)
Morphs the pickup into a model pickup taking any model ID
Declaration
public bool Morph(int model)
Parameters
Type |
Name |
Description |
Int32 |
model |
|
Returns
Events
|
Improve this Doc
View Source
OnHit
Declaration
public event SharedPickup.OnHitHandler OnHit
Event Type
|
Improve this Doc
View Source
OnLeave
Declaration
public event SharedPickup.OnLeaveHandler OnLeave
Event Type