Code:
//-- MISSION.BIEDI
class _vehicle_5145
{
objectType="vehicle";
class Arguments
{
POSITION="[7037.5879, 15014.413, 1.5]";
TYPE="Misc_Wall_lamp";
NAME="button";
INIT="open=button addAction [""Open Door"",""opendoor.sqf""];";
PARENT="";
};
};
class _vehicle_10
{
objectType="vehicle";
class Arguments
{
POSITION="[7030.189, 15015.624]";
TYPE="Misc_cargo_cont_small";
AZIMUT="90";
NAME="door1";
PARENT="";
};
};
class _vehicle_52
{
objectType="vehicle";
class Arguments
{
POSITION="[7030.2554, 15019.983]";
TYPE="Land_fort_bagfence_long";
NAME="door2";
PARENT="";
};
};
class _vehicle_109
{
objectType="vehicle";
class Arguments
{
POSITION="[7030.2554, 15019.983, 0.875]";
TYPE="Fence_Ind";
NAME="door3";
PARENT="";
};
};
//-- OPENDOOR.SQF
door1 setPos [(getPos door1) select 0, (getPos door1) select 1, -6.0];
door2 setPos [(getPos door2) select 0, (getPos door2) select 1, -6.0];
door3 setPos [(getPos door3) select 0, (getPos door3) select 1, -6.0];
button removeaction open;
closed=button addAction ["Close Door","closedoor.sqf"];
//-- CLOSEDOOR.SQF
door1 setPos [(getPos door1) select 0, (getPos door1) select 1, 0];
door2 setPos [(getPos door2) select 0, (getPos door2) select 1, 0];
door3 setPos [(getPos door3) select 0, (getPos door3) select 1, 0.875];
button removeaction closed;
open=button addAction ["Open Door","opendoor.sqf"];
I converted to SQM and added the objects to the file and packed the 2 scripts into the pbo.
The scripts are not working, but I noticed that when you convert the button named object to SQM, the addaction is missing.
Code:
class Item158
{
position[]={7037.5879, 1.5, 15014.413};
init="this setpos [7037.5879, 15014.413, 1.5];private _pos; _pos = getPos _this; _this setVectorUp [_pos select 0, _pos select 1, (_pos select 2) + 10];";
azimut=0;
id=158;
side="EMPTY";
vehicle="Misc_Wall_lamp";
skill=0.60000002;
};
Can I manually add it in to the sqm? after the sqm convert? Or am I doing something really really wrong :/