Class Projectile
Represents a custom projectile
Inherited Members
Namespace: Slipe.Client.Weapons
Assembly: SlipeClient.dll
Syntax
[DefaultElementClass(ElementType.Projectile)]
public class Projectile : PhysicalElement
Constructors
| Improve this Doc View SourceProjectile(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 |
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 |
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 |
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 SourceCounter
Get and set the time left before detonation
Declaration
public int Counter { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Creator
Get the creator of this projectile
Declaration
public Player Creator { get; }
Property Value
Type | Description |
---|---|
Player |
Force
Get the force this projectile has
Declaration
public float Force { get; }
Property Value
Type | Description |
---|---|
Single |
ProjectileType
Get the type of this projectile
Declaration
public ProjectileType ProjectileType { get; }
Property Value
Type | Description |
---|---|
ProjectileType |
Target
Get the target of this projectile
Declaration
public PhysicalElement Target { get; }
Property Value
Type | Description |
---|---|
PhysicalElement |
Events
| Improve this Doc View SourceOnCreated
Declaration
public event Projectile.OnCreatedHandler OnCreated
Event Type
Type | Description |
---|---|
Projectile.OnCreatedHandler |