HeK Posted December 31, 2011 Share Posted December 31, 2011 (edited) I have been trying a lot of coding from the wiki and no success. I wanna set an "DEALER_IDLE" animation to the ped but no success, he just stands there. function weapondealer1() weapondealer1 = createPed ( 28, 1604.3000488281, -1721.0999755859, 6.3000001907349 ) setPedAnimation ( weapondealer1, "DEALER", "DEALER_IDLE" ) end addEventHandler ("onResourceStart", resourceRoot, weapondealer1) Edited December 31, 2011 by Guest Link to comment
Castillo Posted December 31, 2011 Share Posted December 31, 2011 function weapondealer1() weapondealer1 = createPed ( 28, 1604.3000488281, -1721.0999755859, 6.3000001907349 ) setTimer(setPedAnimation, 1000, 1, weapondealer1, "DEALER", "DEALER_IDLE" ) end addEventHandler ("onResourceStart", resourceRoot, weapondealer1) Link to comment
HeK Posted December 31, 2011 Author Share Posted December 31, 2011 Thanks it worked, But how do i make him in "god mode" or never dies and never gets moved? - Happy New Year - Link to comment
Castillo Posted January 1, 2012 Share Posted January 1, 2012 setElementFrozen -- To froze the ped. I would set a element data to the ped, then check it onClientPedDamage and cancel it. Link to comment
HeK Posted January 1, 2012 Author Share Posted January 1, 2012 I tried that with "(weapondealer1, frozen) and without that. I think it's not working because he is doing the "DEALER_IDLE" animation and moving to the sides a little by steps.. EDIT: i fixed it by doing: setElementFrozen ( weapondealer1, true ) Link to comment
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