Search Results for

    Show / Hide Table of Contents

    Class Ped

    Inheritance
    System.Object
    Entity
    Ped
    Implements
    System.IEquatable<Entity>
    IHandleable
    ISpatial
    Inherited Members
    Entity.Handle
    Entity.MemoryAddress
    Entity.IsDead
    Entity.IsAlive
    Entity.Model
    Entity.Alpha
    Entity.ResetAlpha()
    Entity.LodDistance
    Entity.IsPersistent
    Entity.FreezePosition
    Entity.GetBoneIndex(String)
    Entity.HasBone(String)
    Entity.GetBoneCoord(Int32)
    Entity.GetBoneCoord(String)
    Entity.Health
    Entity.Position
    Entity.PositionNoOffset
    Entity.Rotation
    Entity.Heading
    Entity.HeightAboveGround
    Entity.Quaternion
    Entity.UpVector
    Entity.RightVector
    Entity.ForwardVector
    Entity.GetOffsetInWorldCoords(Vector3)
    Entity.GetOffsetFromWorldCoords(Vector3)
    Entity.MaxSpeed
    Entity.Velocity
    Entity.HasBeenDamagedBy(Entity)
    Entity.IsFireProof
    Entity.IsMeleeProof
    Entity.IsBulletProof
    Entity.IsExplosionProof
    Entity.IsCollisionProof
    Entity.IsInvincible
    Entity.IsOnlyDamagedByPlayer
    Entity.IsVisible
    Entity.IsOccluded
    Entity.IsOnFire
    Entity.IsOnScreen
    Entity.IsUpright
    Entity.IsUpsideDown
    Entity.IsInAir
    Entity.IsInWater
    Entity.HasGravity
    Entity.HasCollision
    Entity.HasCollidedWithAnything
    Entity.SetNoCollision(Entity, Boolean)
    Entity.IsInArea(Vector3, Vector3)
    Entity.IsInArea(Vector3, Vector3, Single)
    Entity.IsInAngledArea(Vector3, Vector3, Single)
    Entity.IsInRangeOf(Vector3, Single)
    Entity.IsNearEntity(Entity, Vector3)
    Entity.IsTouching(Model)
    Entity.IsTouching(Entity)
    Entity.AddBlip()
    Entity.CurrentBlip
    Entity.Detach()
    Entity.AttachTo(Entity, Int32)
    Entity.AttachTo(Entity, Int32, Vector3, Vector3)
    Entity.IsAttached()
    Entity.IsAttachedTo(Entity)
    Entity.GetEntityAttachedTo()
    Entity.ApplyForce(Vector3)
    Entity.ApplyForce(Vector3, Vector3)
    Entity.ApplyForce(Vector3, Vector3, ForceType)
    Entity.ApplyForceRelative(Vector3)
    Entity.ApplyForceRelative(Vector3, Vector3)
    Entity.ApplyForceRelative(Vector3, Vector3, ForceType)
    Entity.MarkAsNoLongerNeeded()
    Entity.Delete()
    Entity.Exists()
    Entity.Exists(Entity)
    Entity.Equals(Entity)
    Entity.Equals(Object)
    Entity.GetHashCode()
    System.Object.ToString()
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: GTA
    Assembly: ScriptHookVDotNet2.dll
    Syntax
    public sealed class Ped : Entity, IEquatable<Entity>, IHandleable, ISpatial

    Constructors

    Name Description
    Ped(Int32)

    Properties

    Name Description
    Accuracy

    Gets or sets how accurate this Peds shooting ability is. The higher the value of this property is, the more likely it is that this Ped will shoot at exactly where they are aiming at.

    AlwaysDiesOnLowHealth
    AlwaysKeepTask
    Armor

    Gets or sets how much Armor this Ped is wearing.

    BlockPermanentEvents

    Sets whether permanent events are blocked for this Ped. If permanent events are blocked, this Ped will only do as it's told, and won't flee when shot at, etc.

    CanBeDraggedOutOfVehicle
    CanBeKnockedOffBike
    CanBeShotInVehicle
    CanBeTargetted
    CanFlyThroughWindscreen
    CanPlayGestures
    CanRagdoll
    CanSufferCriticalHits

    Gets or Sets whether this Ped can suffer critical damage (which deals 1000 times base damages to non-player characters with default weapon configs) when bullets hit this Ped's head bone or its child bones. If this Ped can't suffer critical damage, they will take base damage of weapons when bullets hit their head bone or its child bones, just like when bullets hit a bone other than their head bone, its child bones, or limb bones.

    CanSwitchWeapons

    Sets if this Ped can switch between different weapons.

    CanWearHelmet
    CanWrithe
    CurrentPedGroup
    CurrentVehicle

    Gets the current Vehicle this Ped is using.

    DiesInstantlyInWater
    DrivingSpeed
    DrivingStyle
    DropsWeaponsOnDeath
    DrownsInSinkingVehicle
    DrownsInWater
    Euphoria

    Opens a list of Euphoria Helpers which can be applied to this Ped.

    FiringPattern

    Sets the pattern this Ped uses to fire weapons.

    Gender

    Gets the gender of this Ped.

    IsAimingFromCover
    IsBeingJacked
    IsBeingStealthKilled
    IsBeingStunned
    IsClimbing
    IsCuffed
    IsDiving
    IsDoingDriveBy
    IsDucking
    IsEnemy
    IsFalling
    IsFleeing
    IsGettingIntoAVehicle
    IsGettingUp
    IsGoingIntoCover
    IsHuman

    Gets a value indicating whether this Ped is human.

    IsIdle
    IsInBoat
    IsInCombat
    IsInCover()
    IsInCoverFacingLeft
    IsInFlyingVehicle
    IsInGroup

    Gets if this Ped is in a PedGroup.

    IsInHeli
    IsInjured
    IsInMeleeCombat
    IsInParachuteFreeFall
    IsInPlane
    IsInPoliceVehicle
    IsInSub
    IsInTaxi
    IsInTrain
    IsJacking
    IsJumping
    IsJumpingOutOfVehicle

    Gets a value indicating whether this Ped is jumping out of their vehicle.

    IsOnBike
    IsOnFoot
    IsPerformingStealthKill
    IsPlayer
    IsPriorityTargetForEnemies
    IsProne
    IsRagdoll
    IsReloading
    IsRunning
    IsShooting
    IsSprinting
    IsStopped
    IsSwimming
    IsSwimmingUnderWater
    IsTryingToEnterALockedVehicle
    IsVaulting
    IsWalking
    IsWearingHelmet
    LastVehicle

    Gets the last Vehicle this Ped used.

    MaxDrivingSpeed

    Sets the maximum driving speed this Ped can drive at.

    MaxHealth

    Gets or sets the maximum health of this Ped as an System.Int32.

    Money

    Gets or sets how much money this Ped is carrying.

    MovementAnimationSet

    Sets the animation dictionary or set this Ped should use or null to clear it.

    NeverLeavesGroup
    RelationshipGroup
    SeatIndex

    Gets the VehicleSeat this Ped is in.

    ShootRate

    Sets the rate this Ped will shoot at.

    StaysInVehicleWhenJacked

    Sets a value indicating whether this Ped will stay in the vehicle when the driver gets jacked.

    Sweat

    Gets or sets the how much sweat should be rendered on this Ped.

    Task

    Opens a list of TaskInvoker that this Ped can carry out.

    TaskSequenceProgress

    Gets the stage of the TaskSequence this Ped is currently executing.

    Voice

    Sets the voice to use when this Ped speaks.

    WasKilledByStealth

    Gets a value indicating whether this Ped was killed by a stealth attack.

    WasKilledByTakedown

    Gets a value indicating whether this Ped was killed by a takedown.

    Weapons

    Gets a collection of all this Peds Weapons.

    WetnessHeight

    Sets how high up on this Peds body water should be visible.

    Methods

    Name Description
    ApplyDamage(Int32)
    ClearBloodDamage()
    Clone()
    Clone(Single)

    Spawn an identical clone of this Ped.

    GetBoneCoord(Bone)
    GetBoneCoord(Bone, Vector3)
    GetBoneIndex(Bone)
    GetConfigFlag(Int32)
    GetJacker()
    GetJackTarget()
    GetKiller()
    GetLastWeaponImpactCoords()
    GetMeleeTarget()
    GetRelationshipWithPed(Ped)
    GetVehicleIsTryingToEnter()
    GiveHelmet(Boolean, HelmetType, Int32)
    IsHeadtracking(Entity)
    IsInCombatAgainst(Ped)
    IsInCover(Boolean)
    IsInVehicle()
    IsInVehicle(Vehicle)
    IsSittingInVehicle()
    IsSittingInVehicle(Vehicle)
    Kill()

    Kills this Ped immediately.

    LeaveGroup()
    RandomizeOutfit()
    RemoveHelmet(Boolean)
    ResetConfigFlag(Int32)
    ResetVisibleDamage()
    SetConfigFlag(Int32, Boolean)
    SetDefaultClothes()
    SetIntoVehicle(Vehicle, VehicleSeat)
    ☀
    ☾
    Back to top Copyright (C) 2015 crosire - zlib
    Generated with DocFX