Spoiler: Before the morph
Spoiler: During the effect, all items disappear successfully as intended
Spoiler: After the effect, the bug rears its ugly headWhen I have items that are translucent or additive, they turn invisible properly when this script is executed. However, when they are restored, additive/translucent items show up as pure black instead. As demonstrated with the above pics, normal rendered items are fine. It's putting additive and translucent items back to their original states in which they appear to either adapt a stencil black color, or their translations are just outright set to pure black.
Code: Select all
Script "InvisibleItemToggle" (int check)
{
if (check >= 1)
{
//Delay(8);
SetActorProperty(22005,APROP_RenderStyle,STYLE_None);
SetActorProperty(22006,APROP_RenderStyle,STYLE_None);
SetActorProperty(22007,APROP_RenderStyle,STYLE_None);
ACS_NamedExecute("InvisItemLoop",0,0,0,0);
}
else
{
ACS_NamedTerminate("InvisItemLoop",0);
SetActorProperty(22005,APROP_RenderStyle,STYLE_Normal);
SetActorProperty(22006,APROP_RenderStyle,STYLE_Add);
SetActorProperty(22007,APROP_RenderStyle,STYLE_Translucent);
}
}
Script "InvisItemLoop" (void)
{
SetActorProperty(22005,APROP_RenderStyle,STYLE_None);
SetActorProperty(22006,APROP_RenderStyle,STYLE_None);
SetActorProperty(22007,APROP_RenderStyle,STYLE_None);
Delay(17);
Restart;
}