ok hi and welcome
i have a problem and hear gose im makeing some addons of a dubble gate and was wondering how to get the open command to run two animation with only one button press ive got them working useing a script but it seems to have a glitch and animation dont work when useing two gates any help would be great
class wizwall4 : Fortress1
{
vehicleClass="Tower_Pack";
side=TCivilian;
scope=public;
armor=20000;
model="\h_w_walls2\wizwall4.p3d";
displayName="h_w_Gate";
simulation="house";
mapSize = 16
animated=1
class Animations
{
class gate1
{
type="rotation";
animPeriod=1
selection="gate1";
axis="osa_gate1";
angle0=0
angle1=-1.600000;
};
class gate2
{
type="rotation";
animPeriod=1
selection="gate2";
axis="osa_gate2";
angle0=0
angle1=-1.600000;
};
};
class UserActions
{
class Opengate
{
displayName="Open Gate";
position="osa_con";
radius=2.500000;
condition="this animationPhase ""gate1"" < 0.5";
statement="[this] exec ""\h_w_walls2\Scripts\gateopen.sqs"";"
};
class Closegate
{
displayName="Close Gate";
position="osa_con";
radius=2.500000;
condition="this animationPhase ""gate1"" >= 0.5";
statement="[this] exec ""\h_w_walls2\Scripts\gateclose.sqs"";"
now the scripts are just the
gateclosed.sqs
; scripted by wizzywig
titletext["Attention Main Gate shuting","PLAIN DOWN"]
this animate ["gate1", 0];
~1
this animate ["gate2", 0];
gateopen.sqs
; scripted by wizzywig
titletext["Attention Main Gate Opening","PLAIN DOWN"]
this animate ["gate1", 1];
~1
this animate ["gate2", 1];
any help please would go down a treat
thanks