28WL Posted April 10, 2015 Share Posted April 10, 2015 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
JR10 Posted April 10, 2015 Share Posted April 10, 2015 If you're talking about walking and running then it's possible with setPedControlState. 1 Link to comment
Recommended Posts