Reply to Re: Burnin trees
If you don't have an account, just leave the password field blank.
Hmm... the original hellfire script has a bug in it. Replace this code:
//they hit a tree, lets burn the thing
int &hold = sp_editor_num(&missile_target);
sp_hard(&missile_target, 1);
draw_hard_sprite(&missile_target);
&junk = is_script_attached(&missile_target);
if (&junk > 0)
{
//Script is attached to this tree! Let's run it's die script
run_script_by_number(&junk, "DIE");
return;
}
With this:
//they hit a tree, lets burn the thing
int &hold = sp_editor_num(&missile_target);
&junk = is_script_attached(&missile_target);
if (&junk > 0)
{
//Script is attached to this tree! Let's run it's die script
run_script_by_number(&junk, "DIE");
return;
}
sp_hard(&missile_target, 1);
draw_hard_sprite(&missile_target);
//they hit a tree, lets burn the thing
int &hold = sp_editor_num(&missile_target);
sp_hard(&missile_target, 1);
draw_hard_sprite(&missile_target);
&junk = is_script_attached(&missile_target);
if (&junk > 0)
{
//Script is attached to this tree! Let's run it's die script
run_script_by_number(&junk, "DIE");
return;
}
With this:
//they hit a tree, lets burn the thing
int &hold = sp_editor_num(&missile_target);
&junk = is_script_attached(&missile_target);
if (&junk > 0)
{
//Script is attached to this tree! Let's run it's die script
run_script_by_number(&junk, "DIE");
return;
}
sp_hard(&missile_target, 1);
draw_hard_sprite(&missile_target);