Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

I Need Help With My Script

$
0
0
Hey I am making a horror game and I need this hammer to swing. I have this script and fixed a lot of problems with it. I get an error that says the animation state could not be played because it couldn't be found! Here is the script. var animation_bool : boolean ; function Update() { if (animation_bool == true) { GetComponent.().Play("HammerHit"); } if (Input.GetMouseButtonDown(0)) { animation_bool = true; } }

Viewing all articles
Browse latest Browse all 2891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>