Difference between revisions of "Make character disappear"

78 bytes added ,  12:10, 12 April 2006
no edit summary
imported>Hawkes
imported>Hawkes
Line 1: Line 1:
I'm trying to have a NPC dissapear when he dies with the SetActorAlpha fonction but it does not seem to work is there or another? or can some tell me what is wrong with the script?
I'm trying to have a NPC dissapear when he dies with the SetActorAlpha fonction but it does not seem to work is there or another? or can some tell me what is wrong with the script?
--
 
  begin OnDeath
  begin OnDeath


set timer to timer + GetSecondsPassed
  set timer to timer + GetSecondsPassed
 
 
if timer == 1
  if timer == 1
saa 0.45
  saa 0.45
endif
  endif
if timer == 2
  if timer == 2
saa 0.40
  saa 0.40
endif
  endif
if timer == 3
  if timer == 3
saa 0.35
  saa 0.35
Message " As Fiy Rein's ghost disapears before you, you hear his voice in your head : 'Congratulations, you shall now bear my curse...' ", 12
  Message " As Fiy Rein's ghost disapears before you, you hear his voice in your head : 'Congratulations, you shall now bear my curse...' ", 12
endif
  endif
if timer == 4
  if timer == 4
saa 0.30
  saa 0.30
endif
  endif
if timer == 5
  if timer == 5
saa 0.25
  saa 0.25
endif
  endif
if timer == 6
  if timer == 6
saa 0.20
  saa 0.20
endif
  endif
if timer == 7
  if timer == 7
saa 0.15
  saa 0.15
endif
  endif
if timer == 8
  if timer == 8
saa 0.10
  saa 0.10
endif
  endif
if timer ==9
  if timer ==9
saa 0.5
  saa 0.5
endif
  endif
if timer == 10
  if timer == 10
saa 0.0
  saa 0.0
endif
  endif
if timer == 11
  if timer == 11
PlaceAtMe zzreinbrace
  PlaceAtMe zzreinbrace
Player.AddSpell zzreinsab
  Player.AddSpell zzreinsab
ForceWeather Clear
  ForceWeather Clear
ReleaseWeatherOverride
  ReleaseWeatherOverride
Disable zzFiyRein
  Disable zzFiyRein
endif
  endif
 
end


end
--
--[[User:Hawkes|Hawkes]] 13:07, 12 April 2006 (EDT)
--[[User:Hawkes|Hawkes]] 13:07, 12 April 2006 (EDT)


[[Category:Questions]]
[[Category:Questions]]
Anonymous user