Reply to Re: That fireball's pretty, but...
If you don't have an account, just leave the password field blank.
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.
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.