Reply to Re: How to completley kill a sprite and script?
If you don't have an account, just leave the password field blank.
You can use sp_script to replace a sprite's script with another script:
Newcript could include:
Or you could have sp_active in the die procedure or in the script somewhere as sp_active will destroy anything and it's not possible to resurrect anything crushed by sp_active(~~, 0);
int &s = sp(1); script_attach(0); sp_script(&s, "newscript"); kill_this_task();
Newcript could include:
sp_active(¤t_sprite, 0); kill_this_task();
Or you could have sp_active in the die procedure or in the script somewhere as sp_active will destroy anything and it's not possible to resurrect anything crushed by sp_active(~~, 0);