Class Projectile
Inherited Members
Namespace: GTA
Assembly: ScriptHookVDotNet3.dll
Syntax
public class Projectile : Prop, INativeValue, IDeletable, IExistable, ISpatial
Properties
| Improve this Doc View SourceOwner
Gets the Ped this Projectile belongs to. Can be null or a Ped instance whose handle is for Vehicle, which is not valid as a Ped instance.
Declaration
[Obsolete("The Projectile.Owner is obsolete in the v3 API because the actual owner can be a Vehicle, use Projectile.OwnerEntity in the v3 API instead.")]
public Ped Owner { get; }
Property Value
Type | Description |
---|---|
Ped |
OwnerEntity
Gets the Entity this Projectile belongs to. Can be null.
Declaration
public Entity OwnerEntity { get; }
Property Value
Type | Description |
---|---|
Entity |
WeaponHash
Gets the WeaponHash this Projectile was fired with.
Declaration
public WeaponHash WeaponHash { get; }
Property Value
Type | Description |
---|---|
WeaponHash |
Methods
| Improve this Doc View SourceExplode()
Explodes this Projectile. Note that calling this method does not necessarily delete this Projectile due to the weapon configuration.
Declaration
public void Explode()