Class Ped
Assembly: SlipeServer.dll
Syntax
[DefaultElementClass(ElementType.Ped)]
public class Ped : SharedPed
Constructors
|
Improve this Doc
View Source
Ped(PedModel, Vector3, Single, Boolean)
Declaration
public Ped(PedModel model, Vector3 position, float rotation = 0F, bool synced = true)
Parameters
Properties
|
Improve this Doc
View Source
Armor
Get and set the amount of armor of this ped
Declaration
public float Armor { get; set; }
Property Value
|
Improve this Doc
View Source
Chocking
Get and set if the ped is choking
Declaration
public bool Chocking { get; set; }
Property Value
|
Improve this Doc
View Source
FightingStyle
Get and set the fighting style of the ped
Declaration
public FightingStyle FightingStyle { get; set; }
Property Value
|
Improve this Doc
View Source
Gravity
This function returns the current gravity for this ped. The default gravity is 0.008.
Declaration
public float Gravity { get; set; }
Property Value
|
Improve this Doc
View Source
HasJetpack
Get and set if the ped has a jetpack
Declaration
public bool HasJetpack { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
GiveWeapon(SharedWeaponModel, Int32, Boolean)
Give a weapon to this ped
Declaration
public bool GiveWeapon(SharedWeaponModel model, int ammo = 30, bool setAsCurrent = false)
Parameters
Returns
|
Improve this Doc
View Source
ReloadWeapon()
This function reloads the weapon of this ped
Declaration
public bool ReloadWeapon()
Returns
|
Improve this Doc
View Source
SetAmmo(SharedWeaponModel, Int32, Int32)
Set the total ammo of a weapon the ped has
Declaration
public bool SetAmmo(SharedWeaponModel model, int totalAmmo, int ammoInClip = 0)
Parameters
Returns
|
Improve this Doc
View Source
TakeAllWeapons()
Take all weapons from this ped
Declaration
public bool TakeAllWeapons()
Returns
|
Improve this Doc
View Source
TakeAmmo(SharedWeaponModel, Int32)
Take a certain amount of ammo from a player weapon
Declaration
public bool TakeAmmo(SharedWeaponModel model, int amount)
Parameters
Returns
|
Improve this Doc
View Source
TakeWeapon(SharedWeaponModel)
Take a weapon from a player
Declaration
public bool TakeWeapon(SharedWeaponModel model)
Parameters
Returns
Events
|
Improve this Doc
View Source
OnWasted
Declaration
public event Ped.OnWastedHandler OnWasted
Event Type
|
Improve this Doc
View Source
OnWeaponSwitch
Declaration
public event Ped.OnWeaponSwitchHandler OnWeaponSwitch
Event Type
Extension Methods