x


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"

more ▼

asked Dec 03 '11 at 11:19 PM

comedy101experiments gravatar image

comedy101experiments
1 2 2 3

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.

Dec 03 '11 at 11:36 PM syclamoth
(comments are locked)
10|3000 characters needed characters left

0 answers: sort newest
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5072
x221

asked: Dec 03 '11 at 11:19 PM

Seen: 526 times

Last Updated: Dec 03 '11 at 11:36 PM