Bara Posted May 26, 2022 Posted May 26, 2022 local dolls = {}; dolls[1] = createPed ( 120, 1695.2199707031,-2278.3200683594,-1.2447323799133,0,false); setElementFrozen(dolls[1],false) setPedAnimation(dolls[1], "ped", "floor_hit", 1000, false, true, false); If animation are not looped it wont work, but if i turn the 4th arg true it will work local dolls = {}; dolls[1] = createPed ( 120, 1695.2199707031,-2278.3200683594,-1.2447323799133,0,false); setElementFrozen(dolls[1],false) setPedAnimation(dolls[1], "ped", "floor_hit", 1000, true, true, false); But i need a standstill ped that is lies on the floor. Can someone explain how can i do it?
Mr.Hugin Posted May 26, 2022 Posted May 26, 2022 2 hours ago, Logan00 said: local dolls = {}; dolls[1] = createPed ( 120, 1695.2199707031,-2278.3200683594,-1.2447323799133,0,false); setElementFrozen(dolls[1],false) setPedAnimation(dolls[1], "ped", "floor_hit", 1000, false, true, false); If animation are not looped it wont work, but if i turn the 4th arg true it will work local dolls = {}; dolls[1] = createPed ( 120, 1695.2199707031,-2278.3200683594,-1.2447323799133,0,false); setElementFrozen(dolls[1],false) setPedAnimation(dolls[1], "ped", "floor_hit", 1000, true, true, false); But i need a standstill ped that is lies on the floor. Can someone explain how can i do it? setPedAnimation(dolls[1], "ped", "floor_hit", -1, false, false, false, false) try this
Bara Posted May 28, 2022 Author Posted May 28, 2022 still not working it works with players but not with peds, ped are stay stand like nothing happend
mafioz Posted May 29, 2022 Posted May 29, 2022 On 5/28/2022 at 3:33 PM, Logan00 said: still not working it works with players but not with peds, ped are stay stand like nothing happend I think you apply the animation immediately after creating the ped. Try setting the animation via setTimer Spoiler
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now