Class WeaponObject
Weapon object element
A weapon object is a physical object that represents a weapon (usually a firearm), and is able to fire and reload. Much like a player's weapon.
Assembly: SlipeServer.Server.dll
Syntax
public class WeaponObject : WorldObject
Constructors
|
Edit this page
View Source
WeaponObject(ushort, Vector3)
Declaration
public WeaponObject(ushort model, Vector3 position)
Parameters
Properties
|
Edit this page
View Source
Accuracy
Declaration
public float? Accuracy { get; set; }
Property Value
|
Edit this page
View Source
Ammo
Declaration
public ushort Ammo { get; set; }
Property Value
|
Edit this page
View Source
BoneTarget
Declaration
public byte? BoneTarget { get; set; }
Property Value
|
Edit this page
View Source
CheckBuildings
Declaration
public bool CheckBuildings { get; set; }
Property Value
|
Edit this page
View Source
CheckCarTires
Declaration
public bool CheckCarTires { get; set; }
Property Value
|
Edit this page
View Source
CheckDummies
Declaration
public bool CheckDummies { get; set; }
Property Value
|
Edit this page
View Source
CheckObjects
Declaration
public bool CheckObjects { get; set; }
Property Value
|
Edit this page
View Source
CheckPeds
Declaration
public bool CheckPeds { get; set; }
Property Value
|
Edit this page
View Source
CheckVehicles
Declaration
public bool CheckVehicles { get; set; }
Property Value
|
Edit this page
View Source
ClipAmmo
Declaration
public ushort ClipAmmo { get; set; }
Property Value
|
Edit this page
View Source
DamagePerHit
Declaration
public ushort? DamagePerHit { get; set; }
Property Value
|
Edit this page
View Source
DisableWeaponModel
Declaration
public bool DisableWeaponModel { get; set; }
Property Value
|
Edit this page
View Source
ElementType
The element type as per MTA's specifications. Multiple C# types can share the same MTA element type.
Declaration
public override ElementType ElementType { get; }
Property Value
Overrides
|
Edit this page
View Source
IgnoreSomeObjectForCamera
Declaration
public bool IgnoreSomeObjectForCamera { get; set; }
Property Value
|
Edit this page
View Source
InstantReload
Declaration
public bool InstantReload { get; set; }
Property Value
|
Edit this page
View Source
IsChanged
Declaration
public bool IsChanged { get; set; }
Property Value
|
Edit this page
View Source
Owner
Declaration
public Element? Owner { get; set; }
Property Value
|
Edit this page
View Source
SeeThroughStuff
Declaration
public bool SeeThroughStuff { get; set; }
Property Value
|
Edit this page
View Source
ShootIfTargetBlocked
Declaration
public bool ShootIfTargetBlocked { get; set; }
Property Value
|
Edit this page
View Source
ShootIfTargetOutOfRange
Declaration
public bool ShootIfTargetOutOfRange { get; set; }
Property Value
|
Edit this page
View Source
ShootThroughStuff
Declaration
public bool ShootThroughStuff { get; set; }
Property Value
|
Edit this page
View Source
TargetElement
Declaration
public Element? TargetElement { get; set; }
Property Value
|
Edit this page
View Source
TargetPosition
Declaration
public Vector3? TargetPosition { get; set; }
Property Value
|
Edit this page
View Source
TargetRange
Declaration
public float? TargetRange { get; set; }
Property Value
|
Edit this page
View Source
TargetType
Declaration
public WeaponTargetType TargetType { get; set; }
Property Value
|
Edit this page
View Source
WeaponRange
Declaration
public float? WeaponRange { get; set; }
Property Value
|
Edit this page
View Source
WeaponState
Declaration
public WeaponState WeaponState { get; set; }
Property Value
|
Edit this page
View Source
WheelTarget
Declaration
public byte? WheelTarget { get; set; }
Property Value
Methods
|
Edit this page
View Source
AssociateWith(MtaServer)
Declaration
public WeaponObject AssociateWith(MtaServer server)
Parameters
Returns
Extension Methods