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 | 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. | 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 | 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 | sms GhostEffect ;stops the visual effect that might interfere with the saa | ||
end | end | ||
Line 152: | Line 152: | ||
--[[User:Hawkes|Hawkes]] | --[[User:Hawkes|Hawkes]] | ||
== | ==Finally!!== | ||
Well, after a long time | 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. | ||
--- | --- |