Difference between revisions of "Make character disappear"
no edit summary
imported>Diablerie (Moved to Solutions category only) |
imported>Kab |
||
Line 95: | Line 95: | ||
Sure; I'd like to know. If it doesn't work, I'll pull this off the solutions category until we know why that is, but this is a simplified version of what I'm doing in my own work, so I don't suspect you'll have any problem. One caveat I discovered, though. It may not happen on all video cards, but if you hit saa 0 while the shader effect is active, you'll get a strange flash on the NPC. So - make sure the settings in your shader object cut off sharply - and be sure that the effect is entirely dead before you hit saa 0 and disable the NPC. Good Luck. [[User:JBurgess|JBurgess]] 23:24, 14 April 2006 (EDT) | Sure; I'd like to know. If it doesn't work, I'll pull this off the solutions category until we know why that is, but this is a simplified version of what I'm doing in my own work, so I don't suspect you'll have any problem. One caveat I discovered, though. It may not happen on all video cards, but if you hit saa 0 while the shader effect is active, you'll get a strange flash on the NPC. So - make sure the settings in your shader object cut off sharply - and be sure that the effect is entirely dead before you hit saa 0 and disable the NPC. Good Luck. [[User:JBurgess|JBurgess]] 23:24, 14 April 2006 (EDT) | ||
==Silly Me== | |||
All this complicated code and this whole time I've just been doing this. | |||
<pre> | |||
float alpha | |||
short flag | |||
begin onload | |||
set alpha to 1 | |||
end onload | |||
begin ondeath | |||
set flag to 1 | |||
end ondeath | |||
begin gamemode | |||
if ( alpha > 0 ) && ( flag == 1 ) | |||
set alpha to ( alpha - getsecondspassed ) | |||
saa alpha | |||
else | |||
disable | |||
set flag to 0 | |||
endif | |||
end gamemode | |||
</pre> | |||
Seems a lot easier to me. | |||
--[[User:Kab|Kab]] 09:12, 16 April 2006 (EDT) | |||
[[Category:Solutions]] | [[Category:Solutions]] |