Show / Hide Table of Contents

Class Projectile

Represents a custom projectile

Inheritance
Object
Element
PhysicalElement
Projectile
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.Client.Weapons
Assembly: SlipeClient.dll
Syntax
[DefaultElementClass(ElementType.Projectile)]
public class Projectile : PhysicalElement

Constructors

| Improve this Doc View Source

Projectile(PhysicalElement, ProjectileType, Vector3, Single)

Create a new projectile

Declaration
public Projectile(PhysicalElement creator, ProjectileType projectile, Vector3 startPos, float force = 1F)
Parameters
Type Name Description
PhysicalElement creator
ProjectileType projectile
Vector3 startPos
Single force
| Improve this Doc View Source

Projectile(PhysicalElement, ProjectileType, Vector3, Single, PhysicalElement)

Create a new projectile

Declaration
public Projectile(PhysicalElement creator, ProjectileType projectile, Vector3 startPos, float force, PhysicalElement target)
Parameters
Type Name Description
PhysicalElement creator
ProjectileType projectile
Vector3 startPos
Single force
PhysicalElement target
| Improve this Doc View Source

Projectile(PhysicalElement, ProjectileType, Vector3, Single, PhysicalElement, Vector3)

Create a new projectile

Declaration
public Projectile(PhysicalElement creator, ProjectileType projectile, Vector3 startPos, float force, PhysicalElement target, Vector3 rotation)
Parameters
Type Name Description
PhysicalElement creator
ProjectileType projectile
Vector3 startPos
Single force
PhysicalElement target
Vector3 rotation
| Improve this Doc View Source

Projectile(PhysicalElement, ProjectileType, Vector3, Single, PhysicalElement, Vector3, Vector3, Int32)

Create a new projectile with all the parameters

Declaration
public Projectile(PhysicalElement creator, ProjectileType projectile, Vector3 startPos, float force, PhysicalElement target, Vector3 rotation, Vector3 velocity, int model = -1)
Parameters
Type Name Description
PhysicalElement creator
ProjectileType projectile
Vector3 startPos
Single force
PhysicalElement target
Vector3 rotation
Vector3 velocity
Int32 model

Properties

| Improve this Doc View Source

Counter

Get and set the time left before detonation

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

Creator

Get the creator of this projectile

Declaration
public Player Creator { get; }
Property Value
Type Description
Player
| Improve this Doc View Source

Force

Get the force this projectile has

Declaration
public float Force { get; }
Property Value
Type Description
Single
| Improve this Doc View Source

ProjectileType

Get the type of this projectile

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

Target

Get the target of this projectile

Declaration
public PhysicalElement Target { get; }
Property Value
Type Description
PhysicalElement

Events

| Improve this Doc View Source

OnCreated

Declaration
public event Projectile.OnCreatedHandler OnCreated
Event Type
Type Description
Projectile.OnCreatedHandler

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