Hi,
I’d like to know how to make a ped walk to the player to attack him not running.
Currently my peds are running toward the player to attack him but instead I’d like to see them walking.
Thank you.
Hi,
I’d like to know how to make a ped walk to the player to attack him not running.
Currently my peds are running toward the player to attack him but instead I’d like to see them walking.
Thank you.
Share your code so we can help you. Otherwise It’s hard to reply.
ped = CreatePed(4, 0xAC4B4506, newX, newY, z - 500, 0.0, true, true)
SetPedArmour(ped, 100)
SetPedAccuracy(ped, 25)
SetPedSeeingRange(ped, 75.0)
SetPedHearingRange(ped, 50.0)
SetPedFleeAttributes(ped, 0, 0)
SetPedCombatAttributes(ped, 16, true)
SetPedCombatAttributes(ped, 46, true)
SetPedCombatAttributes(ped, 26, true)
SetAmbientVoiceName(ped, "ALIENS")
SetPedEnableWeaponBlocking(ped, true)
SetPedRelationshipGroupHash(ped, GetHashKey("zombeez"))
DisablePedPainAudio(ped, true)
SetPedDiesInWater(ped, true)
SetPedDiesWhenInjured(ped, false)
SetPedDiesInVehicle(ped, true)
SetPedDiesInSinkingVehicle(ped, true)
SetPedCanRagdoll(ped, true)
SetPedPathCanUseClimbovers(ped, false)
SetPedPathCanUseLadders(ped, false)
SetPedPathAvoidFire(ped, false)
SetPedSuffersCriticalHits(ped, true)
ApplyPedBlood(ped, 3, math.random(0, 4) + 0.0, math.random(-0, 4) + 0.0, math.random(-0, 4) + 0.0, "wound_sheet")
SetPedIsDrunk(ped, true)
RequestAnimSet("move_m@drunk@verydrunk")
while not HasAnimSetLoaded("move_m@drunk@verydrunk") do
Wait(1)
end
SetPedMovementClipset(ped, "move_m@drunk@verydrunk", 1.0)
With that my peds attack the player but they run toward it.