28WL Posted April 10, 2015 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) You can hire me!
JR10 Posted April 10, 2015 Posted April 10, 2015 If you're talking about walking and running then it's possible with setPedControlState. Simple0x47 1 Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
Recommended Posts