
Originally Posted by
Max Power
you need to make user actions for those those animation sources, and make sure that they are configured properly. Your user action script probably has the condition > 0.9 or something. You should probably change that to 0.5;
The user condition already has > 0.5:
PHP Code:
class AnimationSources
{
class Ani_DriW
{
source = "user";
animPeriod = 2;
initPhase = 0;
};
};
class UserActions
{
class CloseWindow1
{
displayName = "Close Pilot Window";
position = "pos pilot";
radius = 10;
condition = "(this animationPhase ""Ani_DriW"" < 0.5)&& (alive this)";
statement = "this animate[""Ani_DriW"",0.6]";
onlyforplayer = 1;
priority = 4.7;
showWindow = 1;
};
class OpenWindow1
{
displayName = "Open Pilot Window";
position = "pos pilot";
radius = 10;
condition = "(this animationPhase ""Ani_DriW"" < 0.5)&& (alive this)";
statement = "this animate[""Ani_DriW"",0]";
onlyforplayer = 1;
priority = 4.7;
showWindow = 1;
};
& the model cfg:
PHP Code:
class Ani_DriW {
type = "translationZ";
source = "Ani_DriW";
animPeriod = 3;
selection = "Ani_DriW";
axis = "Ax_DriW";
angle0 = 0;
angle1 = "rad 36";
};