Jump to content
Sign in to follow this  
Hunter-Over-Fire

How To Get This To Work?

Recommended Posts

I am trying to make a way that this script will fire Every time this object is hit buy a person with this specific weapon but it will not work for some lame reason.  any ideas as to why and how to fix it?

20200310131923_1.jpg

Edited by Hunter-Over-Fire

Share this post


Link to post
Share on other sites

you can use the "IS ENTITY/TYPE" tile.

IS   Entity [Get Active Item...] Type [Zirconium Rifle]

That tile by itself will return a True or False, and can go in the IF statement without anything else.

 

Extra tip:  Entities (the objects) have a Type and a Class.  For this one, the Type would be "ZIRCONIUM RIFLE" and a couple Classes for it could be "WEAPON" or "RANGED WEAPON".  A class for a stone block would be "BUILDING MATERIALS" for another example.  And so on.  It really comes in handy sometimes.

Edited by Indomitus

Share this post


Link to post
Share on other sites

Be warned, that if the object is set to "Indestructible" at properties window, the ON DAMAGE event will not be triggered

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×