Difference between revisions of "Make character disappear"

m
multiple typos
imported>ShadowDancer
m (Make character dissapear moved to Make character disappear)
imported>ShadowDancer
m (multiple typos)
Line 1: Line 1:
==Question==
==Question==
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 way? or can someone tell me what is wrong with the script?
I'm trying to have a NPC disappear when he dies with the SetActorAlpha function but it does not seem to work. Is there another way or can someone tell me what is wrong with the script?
==Discussion==
==Discussion==
Several things are "wrong"
Several things are "wrong"
Line 41: Line 41:
   endif
   endif
   if timer ==9
   if timer ==9
   saa 0.5
   saa 0.05
   endif
   endif
   if timer == 10
   if timer == 10
Line 98: Line 98:
==Still...==
==Still...==


I was able to test the script today and it didn't work, not totaly at least. The NCP is disabled at when fadder is at 0, but he isn't fading away even though the GhostEffedt is removed when he dies... I don't get it does my short fariable "dead" must be a flag?? and if it does how do flag works??
I was able to test the script today and it didn't work, not totally at least. The NCP is disabled when fader is at 0, but he isn't fading away even though the GhostEffect is removed when he dies... I don't get it, does my short variable "dead" need to be a flag?? And if it does, how do flags work??


<pre>
<pre>
Line 117: Line 117:
begin OnDeath
begin OnDeath
set dead to 1 ;starts fading
set dead to 1 ;starts fading
sms GhostEffect ;stops the visual effect that might interfer with the saa
sms GhostEffect ;stops the visual effect that might interfere with the saa
end
end


Line 152: Line 152:
--[[User:Hawkes|Hawkes]]
--[[User:Hawkes|Hawkes]]


==Finaly!!==
==Finally!!==


Well, after a long time consentrating on school and PLAYING Oblivion I decided to restart moding and went back to the problem to imediately realise that I hadn't made "fader" a float variable so it's just that... it works now.
Well, after a long time concentrating on school and PLAYING Oblivion I decided to restart modding and went back to the problem and immediately realized that I hadn't made "fader" a float variable so it's just that... it works now.


---
---
Anonymous user