Hi,
I placed a warehouse building in game and its main door is closen by default, I want the door will open automatically when enemy was detected, I tried
_obj animate ["gate1",1]
and
_obj animationPhase "gate1"
but doesn't seem to work, by the way I'm using the warehouse from AGS Industrial Pack, please help
the code:
class OpenGate1
{
displayName="$STR_DN_OUT_O_DOOR";
position="pos_gate1";
radius=5;
condition="this animationPhase ""gate1"" < 0.5";
statement="this animate [""gate1"", 1];";
};
class ClosenGate1
{
displayName="$STR_DN_OUT_C_DOOR";
position="pos_gate1";
radius=5;
condition="this animationPhase ""gate1"" >= 0.5";
statement="this animate [""gate1"", 0];";
};