Angelwolf Posted September 30, 2017 Share Posted September 30, 2017 I'm having a play about with the SoldierAI script and trying to get it working with a model to fire a projectile. Model has an animation called 'Fire' Projectile Prefab is 'tracer.pfb' I've added a pivot named 'muzzle' to the model. When testing, as soon as the model shoots, the game crashes out with a 'Program has stopped responding' error. I've also tried renaming a limb in the model (via the scene) to muzzle and deleting the pivot, but the issue remains. What am I missing? 1 Quote My Games: Nightmare Prism:::WolfTale:::Dungeon Creeper:::Despair of Ordinary Men:::Piano Simulator 2016:::House (W.I.P) Link to comment Share on other sites More sharing options...
Angelwolf Posted October 4, 2017 Author Share Posted October 4, 2017 I found the solution to this. It was crashing because there is no default check in the SoldierAI script to ensure that there is a sound attached for when the model fires. Adding a sound or commenting the line that calls the sound prevents this error. Quote My Games: Nightmare Prism:::WolfTale:::Dungeon Creeper:::Despair of Ordinary Men:::Piano Simulator 2016:::House (W.I.P) 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.