The Dink Network

Reply to Re: That fireball's pretty, but...

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
September 11th 2004, 12:31 PM
goblinm.gif
I'm not sure that I want to answer either of those questions, heh.

Anyhow, for your first question, you can add some code like this to you dam-fire.c

int &script_of_target = is_script_attached(&missle_target);
if (&script_of_target != 0)
{
run_script_by_number(&script_of_target, "hit_by_fireball");
}

then when the fireball hits something, it will run whatever is in the void hit_by_fireball( void ) of the thing's script.

I haven't tried this myself, so I have no idea if it will work.