by Blue Shadow » Tue Jun 17, 2014 9:47 am
Tested with:
In the attached file below, there is a simple actor with renderstyle translucent, which calls an ACS script that is supposed to change its renderstyle from translucent to stencil and back to translucent. Here is the script:
Code: Select all
Script "ChangeRStyle" (void)
{
int rstyle = GetActorProperty(0, APROP_RenderStyle);
If(rstyle == STYLE_Translucent) SetActorProperty(0, APROP_RenderStyle, STYLE_Stencil);
Else SetActorProperty(0, APROP_RenderStyle, STYLE_Translucent);
}
However, when tested in game, the actor changes from its preset renderstyle (translucent) to what I think is shaded, and then to stencil.
My only guess is that something probably went wrong
here.
rstyle_issue.zip
Tested with:[list]
[*][git=67c6690][b]2.8pre-495-g67c6690[/b][/git] (broken)
[*][git=3f8c723][b]2.8pre-420-g3f8c723[/b][/git] (works)[/list]
In the attached file below, there is a simple actor with renderstyle translucent, which calls an ACS script that is supposed to change its renderstyle from translucent to stencil and back to translucent. Here is the script:
[code]
Script "ChangeRStyle" (void)
{
int rstyle = GetActorProperty(0, APROP_RenderStyle);
If(rstyle == STYLE_Translucent) SetActorProperty(0, APROP_RenderStyle, STYLE_Stencil);
Else SetActorProperty(0, APROP_RenderStyle, STYLE_Translucent);
}
[/code]
However, when tested in game, the actor changes from its preset renderstyle (translucent) to what I think is shaded, and then to stencil.
My only guess is that something probably went wrong [git=30f57c0]here[/git].
[attachment=0]rstyle_issue.zip[/attachment]