The Dink Network

Detecting bombs

January 18th 2011, 03:59 PM
boncag.gif
JugglingDink
Peasant He/Him United Kingdom
Streetfish 
Hey guys (and girls),

I've just realised about 1/3 of the way through making my epic that I have no idea how to check if something was hit by a bomb. I know how to check for specific spells/swords/whatever, but I can tell without having to test it that it wont work for bombs. So, how do you detect if something was hit by one?

Thanks to those who help me out again
January 18th 2011, 04:09 PM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
Check dinkc.chm at the compare_sprite_script section. It has exactly the piece of script you're looking for
January 18th 2011, 04:19 PM
boncag.gif
JugglingDink
Peasant He/Him United Kingdom
Streetfish 
Thanks (magic)man!

You can go in the thank you credits, if that's worth anything, haha
January 18th 2011, 04:36 PM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
The bomb hits a target multiple times, like hellfire, so I suggest you put sp_nohit(&current_sprite, 1) in there before you process the action so it doesn't trigger multiple times
January 18th 2011, 04:38 PM
boncag.gif
JugglingDink
Peasant He/Him United Kingdom
Streetfish 
Thanks Kyle, good thing you pointed that out! Knowing me I'd never spot something like that, so you just saved me from having to ask everyone another question