Leigh Posted October 20, 2015 Share Posted October 20, 2015 Hey guys. I'm new to Leadwerks and to game development in general with no knowledge in scripting what-so-ever. I'm not sure if this topic has been covered in the forums, but I am constructing a shotgun weapon prefab using a pre-built model and a modified version of the pre-existing FPS weapon script (with modified values, e.g. pellets, clip size, scatter, etc.). The weapon looks and works great, with one exception. Even though the animations have been correctly attached to their corresponding function (e.g. fire animations plays correctly when gun fires), I am having trouble with the reload animations playing correctly. I want to know how I can basically get load animation to loop in relation to how many shells have been fired (e.g. If I fire 3 shotgun shells, the animation loops to load 3 shells) and then return to the idle animation so the gun is in it's firing position and not up in the air. I would be most grateful if someone would be kind enough to explain what I need to do in order to make the animation work as I want. Screens shots would help if you could tell me what I need to modify in script etc. Thank you very much Leigh Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.