- Home /
Help needed with scripting an enemy
Well I am using the premade bootcamp pack, I have added a couple bosses in, and I was thinking, I could make it so when the gun bullet hits the enemy, the animation die would play iinstead of Waitingforbattle (I am using an animated skeleton for this enemy)
What I have so far in the script (not sure it's correct) is
"onBulletHit skeleton playanimation die"
That's a pretty terrible script. You need some punctuation in there! Look up some basic scripting, and come back here when you know how to put a line together.
For example, have you actually told the script what any of those words mean? How is a computer meant to know what 'onBulletHit' means, if it's never been told? Does it know what a skeleton is? Animation.Play("die") is a thing, but you would know that if you'd read anything in the script reference about animation at all.