Jump to content

SetPedMoveState


Recommended Posts

I think that mta:sa community should make a SetPedMoveState like similar to setPedWalkingStyle because of the thing that I would like to make peds from walking to running or other states.

If there is some way how I could set the ped movement from walking to running, tell me and share with it if you can.

Thank you for your attention.

For example:

function setZombieWalkingStyle() 
    local zombies = getElementsByType("ped") 
    for theKey, theZomb in ipairs(zombies) do 
        setPedWalkingStyle ( theZomb, math.random(120, 123) ) 
    end 
end 
setTimer(setZombieWalkingStyle, math.random(5000,10000), 0) 
  
function setZombieMoveState() 
    local zombies = getElementsByType("ped") 
    for theKey, theZomb in ipairs(zombies) do 
        setPedWalkingStyle ( theZomb, HERE SHOULD BE MOVEMENT STATES RANDOMLY ) 
    end 
end 
setTimer(setZombieMoveState, math.random(10000,30000), 0) 

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...