Show / Hide Table of Contents

Class SharedPickup

Class representing a pickup element

Inheritance
Object
Element
PhysicalElement
SharedPickup
Inherited Members
PhysicalElement.Dimension
PhysicalElement.Interior
PhysicalElement.Frozen
PhysicalElement.Alpha
PhysicalElement.Health
PhysicalElement.Model
PhysicalElement.CollisionShape
PhysicalElement.CollisionsEnabled
PhysicalElement.LowLODElement
PhysicalElement.DoubleSided
PhysicalElement.IsInWater
PhysicalElement.IsLowLOD
PhysicalElement.Position
PhysicalElement.Rotation
PhysicalElement.QuaternionRotation
PhysicalElement.Matrix
PhysicalElement.ForwardVector
PhysicalElement.RightVector
PhysicalElement.UpVector
PhysicalElement.Velocity
PhysicalElement.AngularVelocity
PhysicalElement.AngularQuaternionVelocity
PhysicalElement.ToAttached
PhysicalElement.IsAttached
PhysicalElement.IsWithinCollisionShape(CollisionShape)
PhysicalElement.IsWithinMarker(SharedMarker)
PhysicalElement.AttachTo(PhysicalElement, Matrix4x4)
PhysicalElement.AttachTo(PhysicalElement, Vector3, Vector3)
PhysicalElement.AttachTo(PhysicalElement, Vector3, Quaternion)
PhysicalElement.AttachTo(PhysicalElement)
PhysicalElement.Detach()
PhysicalElement.Offset
PhysicalElement.GetWithinRange(Vector3, Single, String)
PhysicalElement.FaceElement(PhysicalElement)
PhysicalElement.OnClicked
PhysicalElement.OnModelChange
PhysicalElement.OnStartSync
PhysicalElement.OnStopSync
PhysicalElement.OnStreamIn
PhysicalElement.OnStreamOut
Element.element
Element.Root
Element.MTAElement
Element.Type
Element.ID
Element.Exists
Element.ChildCount
Element.Parent
Element.CallPropagationEnabled
Element.SetData(String, Object, Boolean)
Element.GetData(String, Boolean)
Element.TryGetData(String, Object, Boolean)
Element.GetData<T>(String, Boolean)
Element.TryGetData<T>(String, T, Boolean)
Element.Destroy()
Element.GetChild(Int32)
Element.GetChildren(String)
Element.GetByID(String, Int32)
Element.ListenForEvent(String, Boolean, String)
Element.HandleEvent(String, MtaElement, Object, Object, Object, Object, Object, Object, Object, Object)
Element.OnDestroy
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Shared.Pickups
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
public int Ammo { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

Amount

Gets the amount of health or armour stored in the pickup

Declaration
public int Amount { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

PickupType

Gets the type of the pickup

Declaration
public PickupType PickupType { get; }
Property Value
Type Description
PickupType
| 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
Type Description
SharedWeaponModel

Methods

| Improve this Doc View Source

Morph(PickupModel)

Morphs the pickup into a GTA custom pickup

Declaration
public bool Morph(PickupModel model)
Parameters
Type Name Description
PickupModel model
Returns
Type Description
Boolean
| 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
Type Name Description
PickupType type
Int32 amount
Int32 ammo
Returns
Type Description
Boolean
| 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
Type Name Description
SharedWeaponModel weapon
Int32 ammo
Returns
Type Description
Boolean
| 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
Type Description
Boolean

Events

| Improve this Doc View Source

OnHit

Declaration
public event SharedPickup.OnHitHandler OnHit
Event Type
Type Description
SharedPickup.OnHitHandler
| Improve this Doc View Source

OnLeave

Declaration
public event SharedPickup.OnLeaveHandler OnLeave
Event Type
Type Description
SharedPickup.OnLeaveHandler
  • Improve this Doc
  • View Source
Back to top Generated by DocFX