Show / Hide Table of Contents

Class Pickup

Class for a GTA pickup

Inheritance
Object
Element
PhysicalElement
SharedPickup
Pickup
Inherited Members
SharedPickup.PickupType
SharedPickup.Ammo
SharedPickup.WeaponModel
SharedPickup.Amount
SharedPickup.Morph(PickupType, Int32, Int32)
SharedPickup.Morph(SharedWeaponModel, Int32)
SharedPickup.Morph(PickupModel)
SharedPickup.Morph(Int32)
SharedPickup.OnHit
SharedPickup.OnLeave
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.Client.Pickups
Assembly: SlipeClient.dll
Syntax
[DefaultElementClass(ElementType.Pickup)]
public class Pickup : SharedPickup

Constructors

| Improve this Doc View Source

Pickup(Vector3, PickupModel)

Creates a custom model pickup

Declaration
public Pickup(Vector3 position, PickupModel model)
Parameters
Type Name Description
Vector3 position
PickupModel model
| Improve this Doc View Source

Pickup(Vector3, PickupType, Int32, Int32)

Creates a pickup from the base createPickup paramters

Declaration
public Pickup(Vector3 position, PickupType type, int amount, int ammo = 50)
Parameters
Type Name Description
Vector3 position
PickupType type
Int32 amount
Int32 ammo
| Improve this Doc View Source

Pickup(Vector3, PickupType, Int32, Int32, Int32)

Creates a pickup from all CreatePickup variables

Declaration
public Pickup(Vector3 position, PickupType type, int amount, int respawnTime = 30000, int ammo = 50)
Parameters
Type Name Description
Vector3 position
PickupType type
Int32 amount
Int32 respawnTime
Int32 ammo
| Improve this Doc View Source

Pickup(Vector3, SharedWeaponModel, Int32)

Creates a weapon pickup

Declaration
public Pickup(Vector3 position, SharedWeaponModel weapon, int ammo = 50)
Parameters
Type Name Description
Vector3 position
SharedWeaponModel weapon
Int32 ammo
| Improve this Doc View Source

Pickup(Vector3, Int32)

Creates a model pickup from any model ID

Declaration
public Pickup(Vector3 position, int model)
Parameters
Type Name Description
Vector3 position
Int32 model

Extension Methods

ElementExtensions.GetBoundingBox(PhysicalElement)
ElementExtensions.GetDistanceFromCentreOfMassToBaseOfModel(PhysicalElement)
ElementExtensions.GetRadius(PhysicalElement)
ElementExtensions.SetCollidableWith(PhysicalElement, PhysicalElement, Boolean)
ElementExtensions.IsCollidableWith(PhysicalElement, PhysicalElement)
ElementExtensions.IsLocal(PhysicalElement)
ElementExtensions.IsOnScreen(PhysicalElement)
ElementExtensions.SetStreamable(PhysicalElement, Boolean)
ElementExtensions.IsStreamable(PhysicalElement)
ElementExtensions.IsStreamedIn(PhysicalElement)
ElementExtensions.IsSyncer(PhysicalElement)
ElementExtensions.IsWaitingForGroundToLoad(PhysicalElement)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX