Lalalu Posted September 15, 2018 Share Posted September 15, 2018 Hallo! I would like to know if there's any way for all players to see this animations... local animTT = { ifp = {}, animations = { "msclewalkst_armed", "msclewalkst_csaw", "mscle_rckt_run", "mscle_rckt_walkst", "mscle_run_csaw", "muscleidle_rocket", "musclerun", "musclerun_armed", "musclesprint", "musclewalk", "musclewalkstart", "musclewalk_armed", "musclewalk_csaw", "musclewalk_rocket", } } addEventHandler("onClientResourceStart", resourceRoot, function() animTT.ifp["block"] = "muscular" animTT.ifp["ifp"] = engineLoadIFP("muscular.ifp", animTT.ifp["block"]) for _, v in ipairs(animTT.animations) do engineReplaceAnimation(localPlayer, "muscular", v, animTT.ifp["block"], v) end end ) Link to comment
JeViCo Posted September 15, 2018 Share Posted September 15, 2018 Try to use onClientElementStreamIn event to replace animation and onClientElementStreamOut event to restore it (better than detect each player joining/leaving the server) @Lalalu 1 Link to comment
Saml1er Posted September 15, 2018 Share Posted September 15, 2018 5 hours ago, JeViCo said: Try to use onClientElementStreamIn event to replace animation and onClientElementStreamOut event to restore it (better than detect each player joining/leaving the server) @Lalalu Good idea. This is actually a much better and simple solution. I'll update the wiki page. 2 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