Vanish script

Old and generally outdated discussions, with the rare hidden gem. Enter at your own risk.

Moderators: Haplo, Lead Developers

Locked
Anonymous

Vanish script

Post by Anonymous »

I need a simple script that will make a creature vanish after you have killed it.

Something about ifondeath = 1
disable :P

Yeah, and something about fading to black with a certain proximity.
Prowler
Member
Posts: 77
Joined: Tue Nov 25, 2003 5:41 pm
Location: Bedadras, city of dreams.

Post by Prowler »

You mean like this? Creature dies,and its gone?

Code: Select all

begin vanish

short cvar
float timer

if (cvar == -1)
  return

elseif (cvar == 0)
  If (OnDeath == 1)
    set cvar to 1
  endif

elseif (cvar == 1)
  FadeTo 100 2
  set cvar to 2

elseif (cvar == 2)
  set timer to timer+getsecondspassed
  if (timer > 2)  
    set cvar to 3
    set timer to 0
    disable
  endif

elseif (cvar == 3)
  FadeTo 0 10		 
  set cvar to -1

endif

end vanish
 
"Our vision is to recreate Tamriel in a way truthful to how Bethesda Softworks would have wanted it to look like by using TES lore."
Locked