Popular Post MrZsemle Posted October 4, 2018 Popular Post Share Posted October 4, 2018 (edited) Hi. I created horses in mta . It will be visible on my MTA:SA WWII server. Edited October 4, 2018 by MrZsemle 4 Link to comment
Jmaniacs Posted October 4, 2018 Share Posted October 4, 2018 its an simple skin? or its a nice coded script? 1 Link to comment
Simple0x47 Posted October 4, 2018 Share Posted October 4, 2018 That setElementRotation 1 Link to comment
MrKAREEM Posted October 4, 2018 Share Posted October 4, 2018 i want create one as this but how ? 1 Link to comment
MrZsemle Posted October 5, 2018 Author Share Posted October 5, 2018 (edited) Hi everyone I used animations from this mod: https://www.youtube.com/watch?v=2pf10A-_rS0. I loaded the animations with EngineLoadIFP (https://wiki.multitheftauto.com/wiki/EngineLoadIFP ). I replaced a skin with this horse, and i applied this animation to the skin. If you want to make this in serverside, trigger a serverevent which contains SetPedAnimation (https://wiki.multitheftauto.com/wiki/SetPedAnimation ). This is the full cleo script, you can see the horse animations in this file: https://pastebin.com/F6kiSxBp. Bind the animation functions to keys (for example w, a, s, d). You can rotate the horse with https://wiki.multitheftauto.com/wiki/SetElementRotation Quote its an simple skin? or its a nice coded script? Expand both Quote That setElementRotation Expand not only. Quote i want create one as this but how ? Expand You can find the reply above Edited October 5, 2018 by MrZsemle Link to comment
MrKAREEM Posted October 5, 2018 Share Posted October 5, 2018 On 05/10/2018 at 14:57, MrZsemle said: Hi everyone I used animations from this mod: https://www.youtube.com/watch?v=2pf10A-_rS0. I loaded the animations with EngineLoadIFP (https://wiki.multitheftauto.com/wiki/EngineLoadIFP ). I replaced a skin with this horse, and i applied this animation to the skin. If you want to make this in serverside, trigger a serverevent which contains SetPedAnimation (https://wiki.multitheftauto.com/wiki/SetPedAnimation ). This is the full cleo script, you can see the horse animations in this file: https://pastebin.com/F6kiSxBp. Bind the animation functions to keys (for example w, a, s, d). You can rotate the horse with https://wiki.multitheftauto.com/wiki/SetElementRotation both not only. You can find the reply above Expand celeo has removed Link to comment
MrZsemle Posted October 6, 2018 Author Share Posted October 6, 2018 On 05/10/2018 at 20:44, MrKAREEM said: celeo has removed Expand Then, this is the animation list: BLOCK NAME: HORSE_ANIMATION HORSE_RUN HORSE_IDLE_1 SIT_RUN HORSE_SPRINT HORSE_WALK SIT_WALK HORSE_KICK_FORWARD Link to comment
MrKAREEM Posted October 6, 2018 Share Posted October 6, 2018 On 06/10/2018 at 12:01, MrZsemle said: Then, this is the animation list: BLOCK NAME: HORSE_ANIMATION HORSE_RUN HORSE_IDLE_1 SIT_RUN HORSE_SPRINT HORSE_WALK SIT_WALK HORSE_KICK_FORWARD Expand i do all things and now work but how to move the hourse i want when i press w he move and when i hold up he stop how bro ?? Link to comment
MrZsemle Posted October 6, 2018 Author Share Posted October 6, 2018 (edited) On 06/10/2018 at 12:26, MrKAREEM said: i do all things and now work but how to move the hourse i want when i press w he move and when i hold up he stop how bro ?? Expand Create a function which contains setPedAnimation, and bind this function to a key. For example: --this is a clientside code! -- load custom animations local customBlockName = "HORSE_ANIMATION" local IFP = engineLoadIFP( "horse_animations.ifp", customBlockName ) -- create horse, and bind keys horse = createPed(id, x, y, z) bindKey ( "w", "down", moveHorseForward ) bindKey ( "w", "up", stopHorse ) -- set default animations, and attach function setAnimations() setPedAnimation( horse, customBlockName, "HORSE_IDLE" ) setPedAnimation( localPlayer, customBlockName, "SIT" ) attachElements ( localPlayer, horse, x, y, z ) end addEventHandler("onClientResourceStart", resourceRoot, setAnimations) -- move forward, and stop function moveHorseForward() setPedAnimation( horse, customBlockName, "HORSE_RUN" ) setPedAnimation( localPlayer, customBlockName, "SIT_RUN" ) end function stopHorse() setPedAnimation( horse, customBlockName, "HORSE_IDLE" ) setPedAnimation( localPlayer, customBlockName, "SIT" ) end Edited October 6, 2018 by MrZsemle Link to comment
MrKAREEM Posted October 6, 2018 Share Posted October 6, 2018 On 06/10/2018 at 12:47, MrZsemle said: Create a function which contains setPedAnimation, and bind this function to a key. For example: --this is a clientside code! -- load custom animations local customBlockName = "HORSE_ANIMATION" local IFP = engineLoadIFP( "horse_animations.ifp", customBlockName ) -- create horse, and bind keys horse = createPed(id, x, y, z) bindKey ( "w", "down", moveHorseForward ) bindKey ( "w", "up", stopHorse ) -- set default animations, and attach function setAnimations() setPedAnimation( horse, customBlockName, "HORSE_IDLE" ) setPedAnimation( localPlayer, customBlockName, "SIT" ) attachElements ( localPlayer, horse, x, y, z ) end addEventHandler("onClientResourceStart", resourceRoot, setAnimations) -- move forward, and stop function moveHorseForward() setPedAnimation( horse, customBlockName, "HORSE_RUN" ) setPedAnimation( localPlayer, customBlockName, "SIT_RUN" ) end function stopHorse() setPedAnimation( horse, customBlockName, "HORSE_IDLE" ) setPedAnimation( localPlayer, customBlockName, "SIT" ) end Expand thnx bro sorry but i want to know how to let the horse back ward ?? Link to comment
MrZsemle Posted October 6, 2018 Author Share Posted October 6, 2018 On 06/10/2018 at 13:12, MrKAREEM said: thnx bro sorry but i want to know how to let the horse back ward ?? Expand use setElementRotation Link to comment
WIRECOM Posted August 17, 2019 Share Posted August 17, 2019 Any how I can get this script? It is said in the video's description that the scripts are publicly released but i couldnt find anything around the community scripting section Link to comment
MrZsemle Posted September 1, 2019 Author Share Posted September 1, 2019 On 17/08/2019 at 11:59, WIRECOM said: Any how I can get this script? It is said in the video's description that the scripts are publicly released but i couldnt find anything around the community scripting section Expand Hi! I'm only posted a code snippet above. The script isn't ready to release, and i don't plan to continue in the future. 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