Jump to content
lexx

Import keyframe animation from .sqf file

Recommended Posts

Oi Folks,

 

I'm having some troubles with the keyframe animations. This is what I do:

 

1. Setup my keyframe animation (works perfect).

2. Export the mission as .sqf

3. execVM said .sqf into a different (singleplayer) mission

4. use [myTimeline] call BIS_fnc_timeline_play to start it ... and now nothing happens.

 

Really don't know what's causing this issue. As far as I can tell, all keyframe related objects are created correctly. Everything is synchronized. Yet starting the timeline results in nothing happening.

 

Anyone got any ideas?

 

/Edit: Repro-mission: https://drive.google.com/file/d/19noPCeybPgkjfHIZPNVCYScbfJKG_0v3/view?usp=sharing

Play the repro_timeline mission, then run [BIS_Rautake_Timeline02] call BIS_fnc_timeline_play; to see that nothing is happening

Share this post


Link to post
Share on other sites
Spoiler

// Export of 'repor_timeline_base.Tanoa' by Lexx on v0.9

///////////////////////////////////////////////////////////////////////////////////////////
// Init
params [["_layerWhiteList",[],[[]]],["_layerBlacklist",[],[[]]],["_posCenter",[0,0,0],[[]]],["_dir",0,[0]],["_idBlacklist",[],[[]]]];
private _allWhitelisted = _layerWhiteList isEqualTo [];
private _layerRoot = (_allWhitelisted || {true in _layerWhiteList}) && {!(true in _layerBlackList)};
private _layer0 = (_allWhitelisted || {"checkpointrautake" in _layerWhiteList}) && {!("checkpointrautake" in _layerBlackList)};


///////////////////////////////////////////////////////////////////////////////////////////
// Markers
private _markers = [];
private _markerIDs = [];


///////////////////////////////////////////////////////////////////////////////////////////
// Groups
private _groups = [];
private _groupIDs = [];

private _civGroup1 = grpNull;
if (_layerRoot) then {
	_civGroup1 = createGroup civilian;
	_this = _civGroup1;
	_groups pushBack _this;
	_groupIDs pushBack 61;
};

private _civGroup2 = grpNull;
if (_layerRoot) then {
	_civGroup2 = createGroup civilian;
	_this = _civGroup2;
	_groups pushBack _this;
	_groupIDs pushBack 63;
};


///////////////////////////////////////////////////////////////////////////////////////////
// Objects
private _objects = [];
private _objectIDs = [];

private _item1 = objNull;
if (_layer0) then {
	_item1 = createVehicle ["Land_SignWarning_01_CheckpointZone2_F",[3713.21,6169.16,0.138103],[],0,"CAN_COLLIDE"];
	_this = _item1;
	_objects pushBack _this;
	_objectIDs pushBack 1;
	_this setPosWorld [3713.21,6169.16,48.5047];
	_this setVectorDirAndUp [[-0.42136,0.906894,0],[0,0,1]];
	_this setObjectTextureGlobal [0,"a3\structures_f_oldman\signs\traffic\data\sign02_co.paa"];
};

private _item2 = objNull;
if (_layer0) then {
	_item2 = createVehicle ["Land_PortableDesk_01_olive_F",[3720.1,6165.62,-0.00207138],[],0,"CAN_COLLIDE"];
	_this = _item2;
	_objects pushBack _this;
	_objectIDs pushBack 2;
	_this setPosWorld [3720.08,6165.6,47.8364];
	_this setVectorDirAndUp [[-0.912178,-0.405798,-0.0570934],[-0.039967,-0.0505612,0.997921]];
	_this enableSimulation false;
	[_this,"[[[[],[]],[[],[]],[[],[]],[[],[]]],false]"] call BIS_fnc_initAmmoBox;;
	if(_this animationSourcePhase 'Lid_2_hide_source' > 0)then{_this animate ['Drawer_1_move_source',0,true]};
	if(_this animationSourcePhase 'Lid_2_hide_source' > 0)then{_this animate ['Drawer_2_move_source',0,true]};
	if(_this animationSourcePhase 'Lid_2_hide_source' > 0)then{_this animate ['Drawer_3_move_source',0,true]};
	if(_this animationSourcePhase 'Lid_2_hide_source' > 0)then{_this animate ['Drawer_4_move_source',0,true]};
	if(_this animationSourcePhase 'Lid_2_hide_source' > 0)then{_this animate ['Drawer_5_move_source',0,true]};
	if(_this animationSourcePhase 'Lid_2_hide_source' > 0)then{_this animate ['Drawer_6_move_source',0,true]};
	_this animate ['Lid_1_hide_source',1,true];
	_this animate ['Lid_2_hide_source',1,true];
	_this animate ['Wing_L_hide_source',0,true];
	_this animate ['Wing_R_hide_source',0,true];
};

private _item24 = objNull;
if (_layer0) then {
	_item24 = createVehicle ["Land_PortableLight_double_F",[3717.91,6166.89,0.00187302],[],0,"CAN_COLLIDE"];
	_this = _item24;
	_objects pushBack _this;
	_objectIDs pushBack 24;
	_this setPosWorld [3717.91,6166.89,48.4398];
	_this setVectorDirAndUp [[-0.159747,0.987158,0],[0,0,1]];
};

private _item25 = objNull;
if (_layer0) then {
	_item25 = createVehicle ["Land_SignWarning_01_CheckpointZone2_F",[3697.64,6169.29,0.386505],[],0,"CAN_COLLIDE"];
	_this = _item25;
	_objects pushBack _this;
	_objectIDs pushBack 25;
	_this setPosWorld [3697.64,6169.29,48.8078];
	_this setVectorDirAndUp [[0.444344,-0.895856,0],[0,0,1]];
	_this setObjectTextureGlobal [0,"a3\structures_f_oldman\signs\traffic\data\sign02_co.paa"];
};

private _item26 = objNull;
if (_layer0) then {
	_item26 = createVehicle ["Land_PortableDesk_01_olive_F",[3692.35,6171.42,0],[],0,"CAN_COLLIDE"];
	_this = _item26;
	_objects pushBack _this;
	_objectIDs pushBack 26;
	_this setPosWorld [3692.36,6171.42,47.9859];
	_this setVectorDirAndUp [[0.168363,-0.985618,-0.0145519],[0.023991,-0.010661,0.999655]];
	_this enableSimulation false;
	[_this,"[[[[],[]],[[],[]],[[],[]],[[],[]]],false]"] call BIS_fnc_initAmmoBox;;
	if(_this animationSourcePhase 'Lid_2_hide_source' > 0)then{_this animate ['Drawer_1_move_source',0,true]};
	if(_this animationSourcePhase 'Lid_2_hide_source' > 0)then{_this animate ['Drawer_2_move_source',0,true]};
	if(_this animationSourcePhase 'Lid_2_hide_source' > 0)then{_this animate ['Drawer_3_move_source',0,true]};
	if(_this animationSourcePhase 'Lid_2_hide_source' > 0)then{_this animate ['Drawer_4_move_source',0,true]};
	if(_this animationSourcePhase 'Lid_2_hide_source' > 0)then{_this animate ['Drawer_5_move_source',0,true]};
	if(_this animationSourcePhase 'Lid_2_hide_source' > 0)then{_this animate ['Drawer_6_move_source',0,true]};
	_this animate ['Lid_1_hide_source',1,true];
	_this animate ['Lid_2_hide_source',1,true];
	_this animate ['Wing_L_hide_source',0,true];
	_this animate ['Wing_R_hide_source',0,true];
};

private _item27 = objNull;
if (_layer0) then {
	_item27 = createVehicle ["Land_BagFence_01_long_green_F",[3695.73,6171.1,1.14441e-005],[],0,"CAN_COLLIDE"];
	_this = _item27;
	_objects pushBack _this;
	_objectIDs pushBack 27;
	_this setPosWorld [3695.73,6171.1,47.8664];
	_this setVectorDirAndUp [[0.408882,-0.912411,-0.0179542],[0.031983,-0.00533478,0.999474]];
	_this enableSimulation false;
};

private _item28 = objNull;
if (_layer0) then {
	_item28 = createVehicle ["Land_PortableLight_double_F",[3690.62,6168.25,0],[],0,"CAN_COLLIDE"];
	_this = _item28;
	_objects pushBack _this;
	_objectIDs pushBack 28;
	_this setPosWorld [3690.62,6168.25,48.6627];
	_this setVectorDirAndUp [[-0.703423,-0.710771,0],[0,0,1]];
};

private _item29 = objNull;
if (_layer0) then {
	_item29 = createVehicle ["Land_BarGate_F",[3707,6165.97,0],[],0,"CAN_COLLIDE"];
	_this = _item29;
	_objects pushBack _this;
	_objectIDs pushBack 29;
	_this setPosWorld [3707,6165.97,51.2498];
	_this setVectorDirAndUp [[0.419562,-0.907727,0],[0,0,1]];
};

private _item34 = objNull;
if (_layer0) then {
	_item34 = createVehicle ["Sign_Arrow_Direction_Blue_F",[3716.2,6162.84,0.811497],[],0,"CAN_COLLIDE"];
	_this = _item34;
	_objects pushBack _this;
	_objectIDs pushBack 34;
	_this setPosWorld [3716.2,6162.84,48.0669];
	_this setVectorDirAndUp [[0.40606,-0.913847,0],[0,0,1]];
	_this setVehicleVarName "BIS_Rautake_Poi02";
	_this call BIS_fnc_objectVar;
	_this setObjectTextureGlobal [0,"#(argb,8,8,3)color(0,0,1,0.75,ca)"];
};

private _item35 = objNull;
if (_layer0) then {
	_item35 = createVehicle ["Sign_Arrow_Direction_Blue_F",[3696.05,6173.08,0.751419],[],0,"CAN_COLLIDE"];
	_this = _item35;
	_objects pushBack _this;
	_objectIDs pushBack 35;
	_this setPosWorld [3696.05,6173.08,48.256];
	_this setVectorDirAndUp [[-0.396639,0.917975,0],[0,0,1]];
	_this setVehicleVarName "BIS_Rautake_Poi01";
	_this call BIS_fnc_objectVar;
	_this setObjectTextureGlobal [0,"#(argb,8,8,3)color(0,0,1,0.75,ca)"];
};

private _uav1 = objNull;
if (_layer0) then {
	_uav1 = createVehicle ["C_UAV_06_F",[3719.97,6165.77,0.958885],[],0,"CAN_COLLIDE"];

	//Disabel crew so pilot does not fight timeline animation
//	createVehicleCrew _uav1;
//	private _crew = crew _uav1;
//	_crew joinsilent _civGroup1;
//	_objects append _crew;
//	_objectIDs append (_crew apply {-1});

	_this = _uav1;
	_objects pushBack _this;
	_objectIDs pushBack 36;
	_this setPosWorld [3719.96,6165.75,48.6058];
	_this setVectorDirAndUp [[0.905642,0.420113,0.0576029],[-0.0400176,-0.0505611,0.997919]];
	_this setVehicleVarName "BIS_Rautake_UAV02";
	_this call BIS_fnc_objectVar;
	_this setPylonLoadOut [1,""];
	[_this,"[[[[],[]],[[],[]],[[""FirstAidKit""],[2]],[[],[]]],false]"] call bis_fnc_initAmmoBox;;
};

private _uav2 = objNull;
if (_layer0) then {
	_uav2 = createVehicle ["C_UAV_06_F",[3692.36,6172.54,2.38656],[],0,"CAN_COLLIDE"];

	//Disabel crew so pilot does not fight timeline animation
//	createVehicleCrew _uav2;
//	private _crew = crew _uav2;
//	_crew joinsilent _civGroup2;
//	_objects append _crew;
//	_objectIDs append (_crew apply {-1});

	_this = _uav2;
	_objects pushBack _this;
	_objectIDs pushBack 37;
	_this setPosWorld [3692.36,6172.54,50.1899];
	_this setVectorDirAndUp [[0.987557,0.155709,-0.0220401],[0.023991,-0.010661,0.999655]];
	_this setVehicleVarName "BIS_Rautake_UAV01";
	_this call BIS_fnc_objectVar;
	_this setPylonLoadOut [1,""];
	[_this,"[[[[],[]],[[],[]],[[""FirstAidKit""],[2]],[[],[]]],false]"] call bis_fnc_initAmmoBox;;
};

private _item38 = objNull;
if (_layer0) then {
	_item38 = createVehicle ["RoadCone_L_F",[3717.1,6150.92,-0.00113678],[],0,"CAN_COLLIDE"];
	_this = _item38;
	_objects pushBack _this;
	_objectIDs pushBack 38;
	_this setPosWorld [3717.09,6150.91,47.2144];
	_this setVectorDirAndUp [[0.376065,-0.926362,-0.0206887],[-0.0106641,-0.0266532,0.999588]];
};

private _item39 = objNull;
if (_layer0) then {
	_item39 = createVehicle ["RoadCone_L_F",[3718.47,6142.85,-0.00122833],[],0,"CAN_COLLIDE"];
	_this = _item39;
	_objects pushBack _this;
	_objectIDs pushBack 39;
	_this setPosWorld [3718.47,6142.85,47.0192];
	_this setVectorDirAndUp [[0.376294,-0.926374,-0.0152827],[-0.00533768,-0.0186624,0.999812]];
};

private _item40 = objNull;
if (_layer0) then {
	_item40 = createVehicle ["RoadCone_L_F",[3697.15,6181.36,-0.00209808],[],0,"CAN_COLLIDE"];
	_this = _item40;
	_objects pushBack _this;
	_objectIDs pushBack 40;
	_this setPosWorld [3697.16,6181.36,47.8118];
	_this setVectorDirAndUp [[0.376102,-0.926525,-0.00994971],[0.0133313,-0.00532607,0.999897]];
};

private _item41 = objNull;
if (_layer0) then {
	_item41 = createVehicle ["RoadCone_L_F",[3696.32,6188.33,-0.00143433],[],0,"CAN_COLLIDE"];
	_this = _item41;
	_objects pushBack _this;
	_objectIDs pushBack 41;
	_this setPosWorld [3696.32,6188.33,47.8805];
	_this setVectorDirAndUp [[0.376226,-0.92649,-0.00841049],[0.00265199,-0.00800056,0.999964]];
};

private _item42 = objNull;
if (_layer0) then {
	_item42 = createSimpleObject ["Land_CampingTable_small_F",[3695.77,6160.55,47.8527]];
	_this = _item42;
	_objects pushBack _this;
	_objectIDs pushBack 42;
	_this setPosWorld [3695.77,6160.55,48.2579];
	_this setVectorDirAndUp [[0.978695,0.205321,0],[0,0,1]];
};

private _item43 = objNull;
if (_layer0) then {
	_item43 = createVehicle ["Land_Laptop_Intel_01_F",[3695.91,6160.42,1.33689],[],0,"CAN_COLLIDE"];
	_this = _item43;
	_objects pushBack _this;
	_objectIDs pushBack 43;
	_this setPosWorld [3695.91,6160.42,48.8265];
	_this setVectorDirAndUp [[0.134684,-0.990889,0],[0,0,1]];
	_this setObjectTextureGlobal [0,"a3\missions_f_oldman\data\img\screens\csatntb_co.paa"];
};

private _item44 = objNull;
if (_layer0) then {
	_item44 = createSimpleObject ["Land_WaterBottle_01_pack_F",[3695.57,6160.82,48.6952]];
	_this = _item44;
	_objects pushBack _this;
	_objectIDs pushBack 44;
	_this setPosWorld [3695.57,6160.82,48.8259];
	_this setVectorDirAndUp [[0.903603,0.428371,0],[0,0,1]];
};

private _item45 = objNull;
if (_layer0) then {
	_item45 = createVehicle ["Land_FieldToilet_F",[3704.89,6143.69,-0.00463486],[],0,"CAN_COLLIDE"];
	_this = _item45;
	_objects pushBack _this;
	_objectIDs pushBack 45;
	_this setPosWorld [3704.93,6143.68,48.0238];
	_this setVectorDirAndUp [[0.38401,-0.923028,-0.0235721],[0.0293221,-0.0133256,0.999481]];
};

private _item46 = objNull;
if (_layer0) then {
	_item46 = createVehicle ["Land_BagFence_01_round_green_F",[3697.98,6171.4,0],[],0,"CAN_COLLIDE"];
	_this = _item46;
	_objects pushBack _this;
	_objectIDs pushBack 46;
	_this setPosWorld [3697.98,6171.4,47.8025];
	_this setVectorDirAndUp [[-0.340393,-0.940282,0.00133497],[0.0186626,-0.00533659,0.999812]];
	_this enableSimulation false;
};

private _item47 = objNull;
if (_layer0) then {
	_item47 = createVehicle ["Land_Tyre_01_line_x5_F",[3693.92,6173.28,0],[],0,"CAN_COLLIDE"];
	_this = _item47;
	_objects pushBack _this;
	_objectIDs pushBack 47;
	_this setPosWorld [3693.92,6173.28,47.6339];
	_this setVectorDirAndUp [[-0.262964,0.964769,0.00841568],[0.0319868,0,0.999488]];
	_this enableDynamicSimulation true;
};

private _item48 = objNull;
if (_layer0) then {
	_item48 = createVehicle ["Land_Tyre_01_line_x5_F",[3692.9,6176.93,0],[],0,"CAN_COLLIDE"];
	_this = _item48;
	_objects pushBack _this;
	_objectIDs pushBack 48;
	_this setPosWorld [3692.9,6176.93,47.6582];
	_this setVectorDirAndUp [[-0.263005,0.964793,0.00187387],[0.0266547,0.00532461,0.999631]];
	_this enableDynamicSimulation true;
};

private _item49 = objNull;
if (_layer0) then {
	_item49 = createVehicle ["Land_Tyre_01_line_x5_F",[3720,6160.3,0.141258],[],0,"CAN_COLLIDE"];
	_this = _item49;
	_objects pushBack _this;
	_objectIDs pushBack 49;
	_this setPosWorld [3720,6160.3,47.4679];
	_this setVectorDirAndUp [[-0.339425,0.940442,0.0189478],[-0.0106641,-0.0239897,0.999655]];
	_this enableDynamicSimulation true;
};

private _item50 = objNull;
if (_layer0) then {
	_item50 = createVehicle ["Land_Tyre_01_line_x5_F",[3721.93,6155.54,0.148838],[],0,"CAN_COLLIDE"];
	_this = _item50;
	_objects pushBack _this;
	_objectIDs pushBack 50;
	_this setPosWorld [3721.93,6155.54,47.3812];
	_this setVectorDirAndUp [[-0.263023,0.964333,0.0296841],[-0.0239912,-0.0372953,0.999016]];
	_this enableDynamicSimulation true;
};

private _item51 = objNull;
if (_layer0) then {
	_item51 = createVehicle ["Land_BagFence_01_round_green_F",[3714.05,6164.67,-7.62939e-006],[],0,"CAN_COLLIDE"];
	_this = _item51;
	_objects pushBack _this;
	_objectIDs pushBack 51;
	_this setPosWorld [3714.05,6164.67,47.6242];
	_this setVectorDirAndUp [[0.289621,0.956743,0.0275984],[-0.0160014,-0.0239903,0.999584]];
	_this enableSimulation false;
};

private _item52 = objNull;
if (_layer0) then {
	_item52 = createVehicle ["Land_BagFence_01_round_green_F",[3716.37,6165.34,-1.52588e-005],[],0,"CAN_COLLIDE"];
	_this = _item52;
	_objects pushBack _this;
	_objectIDs pushBack 52;
	_this setPosWorld [3716.37,6165.34,47.6807];
	_this setVectorDirAndUp [[-0.751274,0.659985,-0.00268722],[-0.0293202,-0.0293075,0.99914]];
	_this enableSimulation false;
};

private _item53 = objNull;
if (_layer0) then {
	_item53 = createVehicle ["Land_BagFence_01_round_green_F",[3709.99,6173.62,-0.0210724],[],0,"CAN_COLLIDE"];
	_this = _item53;
	_objects pushBack _this;
	_objectIDs pushBack 53;
	_this setPosWorld [3709.99,6173.62,47.7893];
	_this setVectorDirAndUp [[0.924278,-0.38172,0],[0,0,1]];
	_this enableSimulation false;
};

private _item54 = objNull;
if (_layer0) then {
	_item54 = createVehicle ["Land_BagFence_01_round_green_F",[3711.9,6174.75,-0.00130844],[],0,"CAN_COLLIDE"];
	_this = _item54;
	_objects pushBack _this;
	_objectIDs pushBack 54;
	_this setPosWorld [3711.9,6174.75,47.8857];
	_this setVectorDirAndUp [[-0.073812,-0.996941,-0.0256989],[-0.0239937,-0.0239865,0.999424]];
	_this enableSimulation false;
};

private _item55 = objNull;
if (_layer0) then {
	_item55 = createVehicle ["Land_CncBarrierMedium_F",[3719.21,6163.85,0.000541687],[],0,"CAN_COLLIDE"];
	_this = _item55;
	_objects pushBack _this;
	_objectIDs pushBack 55;
	_this setPosWorld [3719.21,6163.85,48.1436];
	_this setVectorDirAndUp [[0.425839,0.904799,0],[0,0,1]];
	_this enableSimulation false;
};

private _item56 = objNull;
if (_layer0) then {
	_item56 = createVehicle ["Land_CncBarrierMedium_F",[3721.6,6164.01,0],[],0,"CAN_COLLIDE"];
	_this = _item56;
	_objects pushBack _this;
	_objectIDs pushBack 56;
	_this setPosWorld [3721.6,6164.01,48.2359];
	_this setVectorDirAndUp [[-0.490031,0.871705,0],[0,0,1]];
	_this enableSimulation false;
};

private _item57 = objNull;
if (_layer0) then {
	_item57 = createVehicle ["Land_CncBarrierMedium_F",[3722.15,6167.18,7.62939e-006],[],0,"CAN_COLLIDE"];
	_this = _item57;
	_objects pushBack _this;
	_objectIDs pushBack 57;
	_this setPosWorld [3722.15,6167.18,48.4028];
	_this setVectorDirAndUp [[0.877707,0.479198,0],[0,0,1]];
	_this enableSimulation false;
};

private _item58 = objNull;
if (_layer0) then {
	_item58 = createVehicle ["Land_CncBarrierMedium4_F",[3715.09,6170.8,-0.00799942],[],0,"CAN_COLLIDE"];
	_this = _item58;
	_objects pushBack _this;
	_objectIDs pushBack 58;
	_this setPosWorld [3715.09,6170.8,48.2602];
	_this setVectorDirAndUp [[-0.407342,0.913276,0],[0,0,1]];
	_this enableSimulation false;
};

private _item59 = objNull;
if (_layer0) then {
	_item59 = createVehicle ["Item_Antimalaricum",[3695.59,6160.17,1.325],[],0,"CAN_COLLIDE"];
	_this = _item59;
	_objects pushBack _this;
	_objectIDs pushBack 59;
	_this setPosWorld [3695.59,6160.17,48.9381];
	_this setVectorDirAndUp [[-0.291871,-0.956458,0],[0,0,1]];
	_this enableDynamicSimulation true;
};

private _item60 = objNull;
if (_layer0) then {
	_item60 = createVehicle ["Item_Antimalaricum",[3694.85,6157.3,0.628025],[],0,"CAN_COLLIDE"];
	_this = _item60;
	_objects pushBack _this;
	_objectIDs pushBack 60;
	_this setPosWorld [3694.85,6157.3,48.2072];
	_this setVectorDirAndUp [[-0.291871,-0.956458,0],[0,0,1]];
	_this enableDynamicSimulation true;
};


///////////////////////////////////////////////////////////////////////////////////////////
// Triggers
private _triggers = [];
private _triggerIDs = [];


///////////////////////////////////////////////////////////////////////////////////////////
// Group attributes (applied only once group units exist)
_this = _civGroup1;
if !(units _this isEqualTo []) then {
	[_this,0] setWaypointPosition [position leader _this,0];
	_this setGroupId ["Alpha 1-1"];;
};
_this = _civGroup2;
if !(units _this isEqualTo []) then {
	[_this,0] setWaypointPosition [position leader _this,0];
	_this setGroupID ["Alpha 1-2"];;
};

//diag_log "Items spawned";
///////////////////////////////////////////////////////////////////////////////////////////
// Waypoints
private _waypoints = [];
private _waypointIDs = [];


///////////////////////////////////////////////////////////////////////////////////////////
// Logics
private _logics = [];
private _logicIDs = [];

private _item71 = objNull;
if (_layerRoot) then {
	_item71 = (group (missionNamespace getVariable ["BIS_functions_mainscope",objNull])) createUnit ["ModuleOmSectorCheckpoint_F",[3704.87,6158.97,0.118],[],0,"CAN_COLLIDE"];
	_this = _item71;
	_logics pushBack _this;
	_logicIDs pushBack 71;
	_this setPosWorld [3704.87,6158.97,47.2111];
	_this setVectorDirAndUp [[-0.444634,0.895483,0.0202893],[0.00267059,-0.0213261,0.999769]];
	_this setVariable ["objectArea",[161.812,52.961,333.594,true,-1]];
	_this setVariable ['Condition',"",true];;
	_this setVariable ['SpawnDistance',500,true];;
	_this setVariable ['VehicleSpawnDistance',500,true];;
	_this setVariable ['side',0,true];;
	_this setVariable ['AASector',false,true];;
	_this setVariable ['RestrictedArea',1,true];;
	_this setVariable ['CanAttack',true,true];;
	_this setVariable ['ThreatRange',300,true];;
	_this setVariable ['ThreatRate',1000,true];;
	_this setVariable ['Layer',"CheckpointRautake",true];;
	_this setVariable ['ZoneA',"[BIS_Rautake_Trg01,BIS_Rautake_Trg02]",true];;
	_this setVariable ['ZoneB',"[BIS_Rautake_Trg03,BIS_Rautake_Trg04]",true];;
	_this setVariable ['ZoneASoldier',"BIS_Rautake_Gua01",true];;
	_this setVariable ['ZoneBSoldier',"BIS_Rautake_Gua02",true];;
	_this setVariable ['ControlZoneA',"BIS_Rautake_Poi01",true];;
	_this setVariable ['ControlZoneB',"BIS_Rautake_Poi02",true];;
	_this setVariable ['DroneTimelineA',"BIS_Rautake_Timeline01",true];;
	_this setVariable ['DroneTimelineB',"BIS_Rautake_Timeline02",true];;
	_this setVariable ['DefaultState',1,true];;
	_this setVariable ['OnStateChangeCode',"if( (_this select 1) == 2) then	{ [_this select 0, vehicle player, (_this select 0) getVariable 'CustomCode'] spawn BIS_fnc_OM_moduleCheckpoint_handleStates };if( (_this select 1) in [0,1]) then {(_this select 0) setVariable ['FSMrunning', false]}",true];;
	_this setVariable ['OnStartCustomCode',"",true];;
	_this setVariable ['OnDespawnCode',"",true];;
	_this setVariable ["BIS_fnc_initModules_disableAutoActivation",true];
};

private _key1 = objNull;
if (_layerRoot) then {
	_key1 = (group (missionNamespace getvariable ["BIS_functions_mainscope",objnull])) createUnit ["Key_F",[3720.35,6164.88,1.8622],[],0,"CAN_COLLIDE"];
	_this = _key1;
	_logics pushBack _this;
	_logicIDs pushBack 72;
	_this setPosWorld [3720.35,6164.88,49.2321];
	_this setVectorDirAndUp [[-0.211657,0.977344,0],[0,0,1]];
	_this setVariable ['Time',3];;
	_this setVariable ['InterpMode',1];;
	_this setVariable ['ArriveTangent',[0,0,-1]];;
	_this setVariable ['LeaveTangent',[0,0,2]];;
	_this setVariable ['ArriveTangentWeight',10];;
	_this setVariable ['LeaveTangentWeight',10];;
	_this setVariable ['LockControlPoints',true];;
	_this setVariable ['CameraFOV',0.75];;
	_this setVariable ['Event',"true"];;
	//_this setvariable ["BIS_fnc_initModules_disableAutoActivation",true];

	//Testing scripted event call back
//	_this setVehicleVarName "Key_1";
//	_this call BIS_fnc_objectVar;
};

private _key2 = objNull;
if (_layerRoot) then {
	_key2 = (group (missionNamespace getVariable ["BIS_functions_mainscope",objNull])) createUnit ["Key_F",[3716.96,6164.74,1.82966],[],0,"CAN_COLLIDE"];
	_this = _key2;
	_logics pushBack _this;
	_logicIDs pushBack 73;
	_this setPosWorld [3716.96,6164.74,49.0916];
	_this setVectorDirAndUp [[-0.825119,-0.564959,0],[0,0,1]];
	_this setVariable ['Time',10];;
	_this setVariable ['InterpMode',1];;
	_this setVariable ['ArriveTangent',[0,0,0.1]];;
	_this setVariable ['LeaveTangent',[0,0,-0.2]];;
	_this setVariable ['ArriveTangentWeight',10];;
	_this setVariable ['LeaveTangentWeight',10];;
	_this setVariable ['LockControlPoints',true];;
	_this setVariable ['CameraFOV',0.75];;
	_this setVariable ['Event',"true"];;
	//_this setvariable ["BIS_fnc_initModules_disableAutoActivation",true];

	//Testing scripted event call back
//	_this setVehicleVarName "Key_2";
//	_this call BIS_fnc_objectVar;
};

private _key3 = objNull;
if (_layerRoot) then {
	_key3 = (group (missionNamespace getVariable ["BIS_functions_mainscope",objNull])) createUnit ["Key_F",[3713.2,6162.98,1.78953],[],0,"CAN_COLLIDE"];
	_this = _key3;
	_logics pushBack _this;
	_logicIDs pushBack 74;
	_this setPosWorld [3713.2,6162.98,48.9389];
	_this setVectorDirAndUp [[0.926275,0.376848,0],[0,0,1]];
	_this setVariable ['Time',15];;
	_this setVariable ['InterpMode',1];;
	_this setVariable ['ArriveTangent',[-1,0,1]];;
	_this setVariable ['LeaveTangent',[-1,0,0.5]];;
	_this setVariable ['ArriveTangentWeight',5];;
	_this setVariable ['LeaveTangentWeight',2];;
	_this setVariable ['LockControlPoints',true];;
	_this setVariable ['CameraFOV',0.75];;
	_this setVariable ['Event',"true"];;
	//_this setvariable ["BIS_fnc_initModules_disableAutoActivation",true];

	//Testing scripted event call back
//	_this setVehicleVarName "Key_3";
//	_this call BIS_fnc_objectVar;
};

private _key4 = objNull;
if (_layerRoot) then {
	_key4 = (group (missionNamespace getVariable ["BIS_functions_mainscope",objNull])) createUnit ["Key_F",[3717.51,6151.84,2.89166],[],0,"CAN_COLLIDE"];
	_this = _key4;
	_logics pushBack _this;
	_logicIDs pushBack 75;
	_this setPosWorld [3717.51,6151.84,49.7842];
	_this setVectorDirAndUp [[-0.150993,0.988535,0],[0,0,1]];
	_this setVariable ['Time',20];;
	_this setVariable ['InterpMode',1];;
	_this setVariable ['ArriveTangent',[-2.5,-2.5,0]];;
	_this setVariable ['LeaveTangent',[0,0,0]];;
	_this setVariable ['ArriveTangentWeight',12];;
	_this setVariable ['LeaveTangentWeight',8];;
	_this setVariable ['LockControlPoints',true];;
	_this setVariable ['CameraFOV',0.75];;
	_this setVariable ['Event',"true"];;
	//_this setvariable ["BIS_fnc_initModules_disableAutoActivation",true];

	//Testing scripted event call back
//	_this setVehicleVarName "Key_4";
//	_this call BIS_fnc_objectVar;
};

private _key5 = objNull;
if (_layerRoot) then {
	_key5 = (group (missionNamespace getVariable ["BIS_functions_mainscope",objNull])) createUnit ["Key_F",[3722.36,6153.52,2.95617],[],0,"CAN_COLLIDE"];
	_this = _key5;
	_logics pushBack _this;
	_logicIDs pushBack 76;
	_this setPosWorld [3722.36,6153.52,50.0017];
	_this setVectorDirAndUp [[-0.995679,0.0928664,0],[0,0,1]];
	_this setVariable ['Time',25];;
	_this setVariable ['InterpMode',1];;
	_this setVariable ['ArriveTangent',[1,1,0]];;
	_this setVariable ['LeaveTangent',[1,1,0]];;
	_this setVariable ['ArriveTangentWeight',10];;
	_this setVariable ['LeaveTangentWeight',10];;
	_this setVariable ['LockControlPoints',true];;
	_this setVariable ['CameraFOV',0.75];;
	_this setVariable ['Event',"true"];;
	//_this setvariable ["BIS_fnc_initModules_disableAutoActivation",true];

	//Testing scripted event call back
//	_this setVehicleVarName "Key_5";
//	_this call BIS_fnc_objectVar;
};

private _key6 = objNull;
if (_layerRoot) then {
	_key6 = (group (missionNamespace getVariable ["BIS_functions_mainscope",objNull])) createUnit ["Key_F",[3720.07,6165.55,0.955944],[],0,"CAN_COLLIDE"];
	_this = _key6;
	_logics pushBack _this;
	_logicIDs pushBack 77;
	_this setPosWorld [3720.07,6165.55,48.3465];
	_this setVectorDirAndUp [[0.0164641,0.99855,0.0512533],[-0.0400176,-0.0505611,0.997919]];
	_this setVariable ['Time',35];;
	_this setVariable ['InterpMode',1];;
	_this setVariable ['ArriveTangent',[-2,2,5]];;
	_this setVariable ['LeaveTangent',[0,0,0]];;
	_this setVariable ['ArriveTangentWeight',10];;
	_this setVariable ['LeaveTangentWeight',10];;
	_this setVariable ['LockControlPoints',true];;
	_this setVariable ['CameraFOV',0.75];;
	_this setVariable ['Event',"true"];;
	//_this setvariable ["BIS_fnc_initModules_disableAutoActivation",true];

	//Testing scripted event call back
//	_this setVehicleVarName "Key_6";
//	_this call BIS_fnc_objectVar;
};

private _key7 = objNull;
if (_layerRoot) then {
	_key7 = (group (missionNamespace getVariable ["BIS_functions_mainscope",objNull])) createUnit ["Key_F",[3719.97,6165.76,0.959126],[],0,"CAN_COLLIDE"];
	_this = _key7;
	_logics pushBack _this;
	_logicIDs pushBack 78;
	_this setPosWorld [3719.97,6165.76,48.356];
	_this setVectorDirAndUp [[0.0164641,0.99855,0.0512533],[-0.0400176,-0.0505611,0.997919]];
	_this setVariable ['Time',0];;
	_this setVariable ['InterpMode',1];;
	_this setVariable ['ArriveTangent',[0,0,0]];;
	_this setVariable ['LeaveTangent',[0,0,0]];;
	_this setVariable ['ArriveTangentWeight',10];;
	_this setVariable ['LeaveTangentWeight',90];;
	_this setVariable ['LockControlPoints',true];;
	_this setVariable ['CameraFOV',0.75];;
	_this setVariable ['Event',"true"];;
	//_this setvariable ["BIS_fnc_initModules_disableAutoActivation",true];

	//Testing scripted event call back
//	_this setVehicleVarName "Key_7";
//	_this call BIS_fnc_objectVar;
};

private _key8 = objNull;
if (_layerRoot) then {
	_key8 = (group (missionNamespace getVariable ["BIS_functions_mainscope",objNull])) createUnit ["Key_F",[3692.33,6172.55,2.28866],[],0,"CAN_COLLIDE"];
	_this = _key8;
	_logics pushBack _this;
	_logicIDs pushBack 79;
	_this setPosWorld [3692.33,6172.55,49.8428];
	_this setVectorDirAndUp [[0.0669531,0.997756,0],[0,0,1]];
	_this setVariable ['Time',3];;
	_this setVariable ['InterpMode',1];;
	_this setVariable ['ArriveTangent',[0,0,-1]];;
	_this setVariable ['LeaveTangent',[0,0,2]];;
	_this setVariable ['ArriveTangentWeight',4];;
	_this setVariable ['LeaveTangentWeight',4];;
	_this setVariable ['LockControlPoints',true];;
	_this setVariable ['CameraFOV',0.75];;
	_this setVariable ['Event',"true"];;
	//_this setvariable ["BIS_fnc_initModules_disableAutoActivation",true];

	//Testing scripted event call back
//	_this setVehicleVarName "Key_8";
//	_this call BIS_fnc_objectVar;
};

private _key9 = objNull;
if (_layerRoot) then {
	_key9 = (group (missionNamespace getVariable ["BIS_functions_mainscope",objNull])) createUnit ["Key_F",[3694.63,6172.7,1.72264],[],0,"CAN_COLLIDE"];
	_this = _key9;
	_logics pushBack _this;
	_logicIDs pushBack 80;
	_this setPosWorld [3694.63,6172.7,49.2146];
	_this setVectorDirAndUp [[-0.825123,-0.564952,0],[0,0,1]];
	_this setVariable ['Time',10];;
	_this setVariable ['InterpMode',1];;
	_this setVariable ['ArriveTangent',[-1,-1,0.1]];;
	_this setVariable ['LeaveTangent',[1,0,-0.2]];;
	_this setVariable ['ArriveTangentWeight',10];;
	_this setVariable ['LeaveTangentWeight',10];;
	_this setVariable ['LockControlPoints',true];;
	_this setVariable ['CameraFOV',0.75];;
	_this setVariable ['Event',"true"];;
	//_this setvariable ["BIS_fnc_initModules_disableAutoActivation",true];

	//Testing scripted event call back
//	_this setVehicleVarName "Key_9";
//	_this call BIS_fnc_objectVar;
};

private _key10 = objNull;
if (_layerRoot) then {
	_key10 = (group (missionNamespace getVariable ["BIS_functions_mainscope",objNull])) createUnit ["Key_F",[3699.39,6173.93,1.73185],[],0,"CAN_COLLIDE"];
	_this = _key10;
	_logics pushBack _this;
	_logicIDs pushBack 81;
	_this setPosWorld [3699.39,6173.93,49.1269];
	_this setVectorDirAndUp [[0.926275,0.376848,0],[0,0,1]];
	_this setVariable ['Time',15];;
	_this setVariable ['InterpMode',1];;
	_this setVariable ['ArriveTangent',[2,2,1]];;
	_this setVariable ['LeaveTangent',[2,2,0.5]];;
	_this setVariable ['ArriveTangentWeight',5];;
	_this setVariable ['LeaveTangentWeight',10];;
	_this setVariable ['LockControlPoints',true];;
	_this setVariable ['CameraFOV',0.75];;
	_this setVariable ['Event',"true"];;
	//_this setvariable ["BIS_fnc_initModules_disableAutoActivation",true];

	//Testing scripted event call back
//	_this setVehicleVarName "Key_10";
//	_this call BIS_fnc_objectVar;
};

private _key11 = objNull;
if (_layerRoot) then {
	_key11 = (group (missionNamespace getVariable ["BIS_functions_mainscope",objNull])) createUnit ["Key_F",[3696.06,6181.71,2.82845],[],0,"CAN_COLLIDE"];
	_this = _key11;
	_logics pushBack _this;
	_logicIDs pushBack 82;
	_this setPosWorld [3696.06,6181.71,50.3068];
	_this setVectorDirAndUp [[-0.150993,0.988535,0],[0,0,1]];
	_this setVariable ['Time',20];;
	_this setVariable ['InterpMode',1];;
	_this setVariable ['ArriveTangent',[3,3,0]];;
	_this setVariable ['LeaveTangent',[-1,0,0.5]];;
	_this setVariable ['ArriveTangentWeight',5];;
	_this setVariable ['LeaveTangentWeight',15];;
	_this setVariable ['LockControlPoints',true];;
	_this setVariable ['CameraFOV',0.75];;
	_this setVariable ['Event',"true"];;
	//_this setvariable ["BIS_fnc_initModules_disableAutoActivation",true];

	//Testing scripted event call back
//	_this setVehicleVarName "Key_11";
//	_this call BIS_fnc_objectVar;
};

private _key12 = objNull;
if (_layerRoot) then {
	_key12 = (group (missionNamespace getVariable ["BIS_functions_mainscope",objNull])) createUnit ["Key_F",[3692.1,6180.74,2.86051],[],0,"CAN_COLLIDE"];
	_this = _key12;
	_logics pushBack _this;
	_logicIDs pushBack 83;
	_this setPosWorld [3692.1,6180.74,50.4197];
	_this setVectorDirAndUp [[-0.995679,0.0928664,0],[0,0,1]];
	_this setVariable ['Time',25];;
	_this setVariable ['InterpMode',1];;
	_this setVariable ['ArriveTangent',[-2,2,0]];;
	_this setVariable ['LeaveTangent',[0,0,0]];;
	_this setVariable ['ArriveTangentWeight',5];;
	_this setVariable ['LeaveTangentWeight',5];;
	_this setVariable ['LockControlPoints',true];;
	_this setVariable ['CameraFOV',0.75];;
	_this setVariable ['Event',"true"];;
	//_this setvariable ["BIS_fnc_initModules_disableAutoActivation",true];

	//Testing scripted event call back
//	_this setVehicleVarName "Key_12";
//	_this call BIS_fnc_objectVar;
};

private _key13 = objNull;
if (_layerRoot) then {
	_key13 = (group (missionNamespace getVariable ["BIS_functions_mainscope",objNull])) createUnit ["Key_F",[3692.2,6171.45,1.01165],[],0,"CAN_COLLIDE"];
	_this = _key13;
	_logics pushBack _this;
	_logicIDs pushBack 84;
	_this setPosWorld [3692.2,6171.45,48.5577];
	_this setVectorDirAndUp [[0.292154,0.956366,0.00318786],[0.023991,-0.010661,0.999655]];
	_this setVariable ['Time',35];;
	_this setVariable ['InterpMode',1];;
	_this setVariable ['ArriveTangent',[-2,2,5]];;
	_this setVariable ['LeaveTangent',[0,0,0]];;
	_this setVariable ['ArriveTangentWeight',1];;
	_this setVariable ['LeaveTangentWeight',1];;
	_this setVariable ['LockControlPoints',true];;
	_this setVariable ['CameraFOV',0.75];;
	_this setVariable ['Event',"true"];;
	//_this setvariable ["BIS_fnc_initModules_disableAutoActivation",true];

	//Testing scripted event call back
//	_this setVehicleVarName "Key_13";
//	_this call BIS_fnc_objectVar;
};

private _key14 = objNull;
if (_layerRoot) then {
	_key14 = (group (missionNamespace getVariable ["BIS_functions_mainscope",objNull])) createUnit ["Key_F",[3692.5,6171.34,1.03466],[],0,"CAN_COLLIDE"];
	_this = _key14;
	_logics pushBack _this;
	_logicIDs pushBack 85;
	_this setPosWorld [3692.5,6171.34,48.5722];
	_this setVectorDirAndUp [[0.292159,0.956365,0.00318774],[0.023991,-0.010661,0.999655]];
	_this setVariable ['Time',0];;
	_this setVariable ['InterpMode',1];;
	_this setVariable ['ArriveTangent',[0,0,0]];;
	_this setVariable ['LeaveTangent',[0,0,0]];;
	_this setVariable ['ArriveTangentWeight',10];;
	_this setVariable ['LeaveTangentWeight',90];;
	_this setVariable ['LockControlPoints',true];;
	_this setVariable ['CameraFOV',0.75];;
	_this setVariable ['Event',"true"];;
	//_this setvariable ["BIS_fnc_initModules_disableAutoActivation",true];

	//Testing scripted event call back
//	_this setVehicleVarName "Key_14";
//	_this call BIS_fnc_objectVar;
};

private _item86 = objNull;
if (_layerRoot) then {
	_item86 = (group (missionNamespace getVariable ["BIS_functions_mainscope",objNull])) createUnit ["ModuleEditTerrainObject_F",[3692.5,6179.64,0],[],0,"CAN_COLLIDE"];
	_this = _item86;
	_logics pushBack _this;
	_logicIDs pushBack 86;
	_this setPosWorld [3692.5,6179.64,47.5468];
	_this setVectorDirAndUp [[0.290686,0.956798,-0.00620091],[0.0213271,0,0.999773]];
	_this setVariable ["objectArea",[1,1,16.8994,false,-1]];
	_this setVariable ["#name",""];
	_this setVariable ["#initServer",""];
	_this setVariable ["#init",""];
	_this setVariable ["#filter",15];
	_this setVariable ["#state",5];
	_this setVariable ["#allowDamage",true];
	_this setVariable ["#doorStates",[0,0,0]];
	_this setVariable ["BIS_fnc_initModules_disableAutoActivation",true];
};

private _item87 = objNull;
if (_layerRoot) then {
	_item87 = (group (missionNamespace getVariable ["BIS_functions_mainscope",objNull])) createUnit ["ModuleEditTerrainObject_F",[3691.45,6168.2,0],[],0,"CAN_COLLIDE"];
	_this = _item87;
	_logics pushBack _this;
	_logicIDs pushBack 87;
	_this setPosWorld [3691.45,6168.2,47.5521];
	_this setVectorDirAndUp [[0.29055,0.956766,-0.0133842],[0.0373061,0.0026502,0.9993]];
	_this setVariable ["objectArea",[1,1,16.8924,false,-1]];
	_this setVariable ["#name",""];
	_this setVariable ["#initServer",""];
	_this setVariable ["#init",""];
	_this setVariable ["#filter",15];
	_this setVariable ["#state",5];
	_this setVariable ["#allowDamage",true];
	_this setVariable ["#doorStates",[0,0,0]];
	_this setVariable ["BIS_fnc_initModules_disableAutoActivation",true];
};

private _item88 = objNull;
if (_layerRoot) then {
	_item88 = (group (missionNamespace getVariable ["BIS_functions_mainscope",objNull])) createUnit ["ModuleEditTerrainObject_F",[3687.28,6178.38,0],[],0,"CAN_COLLIDE"];
	_this = _item88;
	_logics pushBack _this;
	_logicIDs pushBack 88;
	_this setPosWorld [3687.28,6178.38,47.6986];
	_this setVectorDirAndUp [[0.290498,0.956767,-0.0144034],[0.0319849,0.00533495,0.999474]];
	_this setVariable ["objectArea",[1,1,16.8896,false,-1]];
	_this setVariable ["#name",""];
	_this setVariable ["#initServer",""];
	_this setVariable ["#init",""];
	_this setVariable ["#filter",15];
	_this setVariable ["#state",5];
	_this setVariable ["#allowDamage",true];
	_this setVariable ["#doorStates",[0,0,0]];
	_this setVariable ["BIS_fnc_initModules_disableAutoActivation",true];
};

private _item89 = objNull;
if (_layerRoot) then {
	_item89 = (group (missionNamespace getVariable ["BIS_functions_mainscope",objNull])) createUnit ["ModuleEditTerrainObject_F",[3691.33,6180.7,0],[],0,"CAN_COLLIDE"];
	_this = _item89;
	_logics pushBack _this;
	_logicIDs pushBack 89;
	_this setPosWorld [3691.33,6180.7,47.5753];
	_this setVectorDirAndUp [[0.29053,0.956716,-0.0169519],[0.031983,0.0079968,0.999456]];
	_this setVariable ["objectArea",[1,1,16.8922,false,-1]];
	_this setVariable ["#name",""];
	_this setVariable ["#initServer",""];
	_this setVariable ["#init",""];
	_this setVariable ["#filter",15];
	_this setVariable ["#state",5];
	_this setVariable ["#allowDamage",true];
	_this setVariable ["#doorStates",[0,0,0]];
	_this setVariable ["BIS_fnc_initModules_disableAutoActivation",true];
};

private _timeline2 = objNull;
if (_layerRoot) then {
	_timeline2 = (group (missionNamespace getVariable ["BIS_functions_mainscope",objNull])) createUnit ["Timeline_F",[3716.77,6158.59,0],[],0,"CAN_COLLIDE"];
	_this = _timeline2;
	_logics pushBack _this;
	_logicIDs pushBack 90;
	_this setPosWorld [3716.77,6158.59,47.1002];
	_this setVectorDirAndUp [[0.594533,0.803347,0.034116],[-0.0213263,-0.0266596,0.999417]];
	_this setVehicleVarName "BIS_Rautake_Timeline02";
	_this call BIS_fnc_objectVar;
	_this setVariable ['PlayFromStart',false];;
	_this setVariable ['DestroyWhenFinished',false];;
	_this setVariable ['Length',35];;
	_this setVariable ['PlayRate',1];;
	_this setVariable ['Loop',false];;
	_this setVariable ['Reverse',false];;
	_this setVariable ['Paused',false];;
	_this setVariable ['InterpMode',1];;
	_this setVariable ['EventStarted',"true"];;
	_this setVariable ['EventFinished',"true"];;
	_this setVariable ['EventLooped',"true"];;
	//_this setvariable ["BIS_fnc_initModules_disableAutoActivation",true];
};

private _timeline1 = objNull;
if (_layerRoot) then {
	_timeline1 = (group (missionNamespace getVariable ["BIS_functions_mainscope",objNull])) createUnit ["Timeline_F",[3696.9,6174.83,0],[],0,"CAN_COLLIDE"];
	_this = _timeline1;
	_logics pushBack _this;
	_logicIDs pushBack 91;
	_this setPosWorld [3696.9,6174.83,47.4377];
	_this setVectorDirAndUp [[0.594647,0.803977,-0.00411155],[0.0213271,-0.0106617,0.999716]];
	_this setVehicleVarName "BIS_Rautake_Timeline01";
	_this call BIS_fnc_objectVar;
	_this setVariable ['PlayFromStart',false];;
	_this setVariable ['DestroyWhenFinished',false];;
	_this setVariable ['Length',35];;
	_this setVariable ['PlayRate',1];;
	_this setVariable ['Loop',false];;
	_this setVariable ['Reverse',false];;
	_this setVariable ['Paused',false];;
	_this setVariable ['InterpMode',1];;
	_this setVariable ['EventStarted',"true"];;
	_this setVariable ['EventFinished',"true"];;
	_this setVariable ['EventLooped',"true"];;
	//_this setvariable ["BIS_fnc_initModules_disableAutoActivation",true];
};

private _curve2 = objNull;
if (_layerRoot) then {
	_curve2 = (group (missionNamespace getVariable ["BIS_functions_mainscope",objNull])) createUnit ["Curve_F",[3717.38,6158.84,0],[],0,"CAN_COLLIDE"];
	_this = _curve2;
	_logics pushBack _this;
	_logicIDs pushBack 92;
	_this setPosWorld [3717.38,6158.84,47.12];
	_this setVectorDirAndUp [[0.594626,0.803279,0.0341098],[-0.0213272,-0.026651,0.999417]];
	_this setVariable ['TimeInSeconds',true];;
	_this setVariable ['OrientationMode',1];;
	_this setVariable ['LookAt',"[-1,<NULL-object>]"];;
	_this setVariable ['3DENDrawPrecision',0.25];;
	_this setVariable ['3DENDrawPrecisionDrag',0.25];;
	//_this setvariable ["BIS_fnc_initModules_disableAutoActivation",true];
};

private _curve1 = objNull;
if (_layerRoot) then {
	_curve1 = (group (missionNamespace getVariable ["BIS_functions_mainscope",objNull])) createUnit ["Curve_F",[3696.21,6174.54,0],[],0,"CAN_COLLIDE"];
	_this = _curve1;
	_logics pushBack _this;
	_logicIDs pushBack 93;
	_this setPosWorld [3696.21,6174.54,47.4492];
	_this setVectorDirAndUp [[0.594647,0.803977,-0.00411155],[0.0213271,-0.0106617,0.999716]];
	_this setVariable ['TimeInSeconds',true];;
	_this setVariable ['OrientationMode',1];;
	_this setVariable ['LookAt',"[-1,<NULL-object>]"];;
	_this setVariable ['3DENDrawPrecision',0.25];;
	_this setVariable ['3DENDrawPrecisionDrag',0.25];;
	//_this setvariable ["BIS_fnc_initModules_disableAutoActivation",true];
};

private _item94 = objNull;
if (_layerRoot) then {
	_item94 = (group (missionNamespace getVariable ["BIS_functions_mainscope",objNull])) createUnit ["ModuleOmIntel_F",[3693.56,6158.13,0],[],0,"CAN_COLLIDE"];
	_this = _item94;
	_logics pushBack _this;
	_logicIDs pushBack 94;
	_this setPosWorld [3693.56,6158.13,47.3593];
	_this setVectorDirAndUp [[0.290452,0.956742,0.0167674],[0.0213262,-0.0239908,0.999485]];
	_this setVariable ['ID',"CSAT: Road checkpoint - Rautake",true];;
	_this setVariable ['Title',"STR_A3_OM_INTEL_CheckpointRautake_Title",true];;
	_this setVariable ['Text',"STR_A3_OM_INTEL_CheckpointRautake_Text",true];;
	_this setVariable ['Markers',"[[""SmartMarker_O_checkpoint_F"", ""BIS_CheckpointRautakeMarker""]]",true];;
	_this setVariable ['Probability',1,true];;
	_this setVariable ['OnFindCode',"",true];;
	_this setVariable ['GatherCondition',"TRUE",true];;
	_this setVariable ['Priority',0,true];;
	_this setVariable ['Source',"[]",true];;
	_this setVariable ['Children',"[]",true];;
	_this setVariable ['RevealData',"[position _module, 150]",true];;
	_this setVariable ["BIS_fnc_initModules_disableAutoActivation",true];
};

//diag_log "Logics spawned";
///////////////////////////////////////////////////////////////////////////////////////////
// Layers
if (_layer0) then {missionNamespace setVariable ["repor_timeline_base_CheckpointRautake",[[_item1,_item2,_item24,_item25,_item26,_item27,_item28,_item29,_item34,_item35,_uav1,_uav2,_item38,_item39,_item40,_item41,_item42,_item43,_item44,_item45,_item46,_item47,_item48,_item49,_item50,_item51,_item52,_item53,_item54,_item55,_item56,_item57,_item58,_item59,_item60],[]]];};


///////////////////////////////////////////////////////////////////////////////////////////
// Crews


///////////////////////////////////////////////////////////////////////////////////////////
// Vehicle cargo

//diag_log "syncing entities";
///////////////////////////////////////////////////////////////////////////////////////////
// Connections
if (!isNull _uav1 && !isNull _curve2) then {_uav1 synchronizeObjectsAdd [_curve2]; _curve2 synchronizeObjectsAdd [_uav1];};
if (!isNull _key1 && !isNull _curve2) then {_key1 synchronizeObjectsAdd [_curve2]; _curve2 synchronizeObjectsAdd [_key1];};
if (!isNull _key2 && !isNull _curve2) then {_key2 synchronizeObjectsAdd [_curve2]; _curve2 synchronizeObjectsAdd [_key2];};
if (!isNull _key3 && !isNull _curve2) then {_key3 synchronizeObjectsAdd [_curve2]; _curve2 synchronizeObjectsAdd [_key3];};
if (!isNull _key4 && !isNull _curve2) then {_key4 synchronizeObjectsAdd [_curve2]; _curve2 synchronizeObjectsAdd [_key4];};
if (!isNull _key5 && !isNull _curve2) then {_key5 synchronizeObjectsAdd [_curve2]; _curve2 synchronizeObjectsAdd [_key5];};
if (!isNull _key6 && !isNull _curve2) then {_key6 synchronizeObjectsAdd [_curve2]; _curve2 synchronizeObjectsAdd [_key6];};
if (!isNull _key7 && !isNull _curve2) then {_key7 synchronizeObjectsAdd [_curve2]; _curve2 synchronizeObjectsAdd [_key7];};
if (!isNull _timeline2 && !isNull _curve2) then {_timeline2 synchronizeObjectsAdd [_curve2]; _curve2 synchronizeObjectsAdd [_timeline2];};

if (!isNull _uav2 && !isNull _curve1) then {_uav2 synchronizeObjectsAdd [_curve1]; _curve1 synchronizeObjectsAdd [_uav2];};
if (!isNull _key8 && !isNull _curve1) then {_key8 synchronizeObjectsAdd [_curve1]; _curve1 synchronizeObjectsAdd [_key8];};
if (!isNull _key9 && !isNull _curve1) then {_key9 synchronizeObjectsAdd [_curve1]; _curve1 synchronizeObjectsAdd [_key9];};
if (!isNull _key10 && !isNull _curve1) then {_key10 synchronizeObjectsAdd [_curve1]; _curve1 synchronizeObjectsAdd [_key10];};
if (!isNull _key11 && !isNull _curve1) then {_key11 synchronizeObjectsAdd [_curve1]; _curve1 synchronizeObjectsAdd [_key11];};
if (!isNull _key12 && !isNull _curve1) then {_key12 synchronizeObjectsAdd [_curve1]; _curve1 synchronizeObjectsAdd [_key12];};
if (!isNull _key13 && !isNull _curve1) then {_key13 synchronizeObjectsAdd [_curve1]; _curve1 synchronizeObjectsAdd [_key13];};
if (!isNull _key14 && !isNull _curve1) then {_key14 synchronizeObjectsAdd [_curve1]; _curve1 synchronizeObjectsAdd [_key14];};
if (!isNull _timeline1 && !isNull _curve1) then {_timeline1 synchronizeObjectsAdd [_curve1]; _curve1 synchronizeObjectsAdd [_timeline1];};


///////////////////////////////////////////////////////////////////////////////////////////
// Inits (executed only once all entities exist; isNil used to ensure non-scheduled environment)
//isNil {
//};

//diag_log "Enabling Logics";
///////////////////////////////////////////////////////////////////////////////////////////
// Module activations (only once everything is spawned and connected)
if !(isNull _item71) then {_item71 setVariable ["BIS_fnc_initModules_activate",true];};
if !(isNull _item86) then {_item86 setVariable ["BIS_fnc_initModules_activate",true];};
if !(isNull _item87) then {_item87 setVariable ["BIS_fnc_initModules_activate",true];};
if !(isNull _item88) then {_item88 setVariable ["BIS_fnc_initModules_activate",true];};
if !(isNull _item89) then {_item89 setVariable ["BIS_fnc_initModules_activate",true];};
if !(isNull _item94) then {_item94 setVariable ["BIS_fnc_initModules_activate",true];};

//Not needed, key, curve and timelines do not initialise through the module framework
//if !(isNull _key1) then {_key1 setVariable ["BIS_fnc_initModules_activate",true];};
//if !(isNull _key2) then {_key2 setVariable ["BIS_fnc_initModules_activate",true];};
//if !(isNull _key3) then {_key3 setVariable ["BIS_fnc_initModules_activate",true];};
//if !(isNull _key4) then {_key4 setVariable ["BIS_fnc_initModules_activate",true];};
//if !(isNull _key5) then {_key5 setVariable ["BIS_fnc_initModules_activate",true];};
//if !(isNull _key6) then {_key6 setVariable ["BIS_fnc_initModules_activate",true];};
//if !(isNull _key7) then {_key7 setVariable ["BIS_fnc_initModules_activate",true];};
//if !(isNull _key8) then {_key8 setVariable ["BIS_fnc_initModules_activate",true];};
//if !(isNull _key9) then {_key9 setVariable ["BIS_fnc_initModules_activate",true];};
//if !(isNull _key10) then {_key10 setVariable ["BIS_fnc_initModules_activate",true];};
//if !(isNull _key11) then {_key11 setVariable ["BIS_fnc_initModules_activate",true];};
//if !(isNull _key12) then {_key12 setVariable ["BIS_fnc_initModules_activate",true];};
//if !(isNull _key13) then {_key13 setVariable ["BIS_fnc_initModules_activate",true];};
//if !(isNull _key14) then {_key14 setVariable ["BIS_fnc_initModules_activate",true];};
//if !(isNull _curve2) then {_curve2 setVariable ["BIS_fnc_initModules_activate",true];};
//if !(isNull _curve1) then {_curve1 setVariable ["BIS_fnc_initModules_activate",true];};
//if !(isNull _timeline2) then {_timeline2 setVariable ["BIS_fnc_initModules_activate",true];};
//if !(isNull _timeline1) then {_timeline1 setVariable ["BIS_fnc_initModules_activate",true];};


///////////////////////////////////////////////////////////////////////////////////////////
//[[_objects,_groups,_triggers,_waypoints,_logics,_markers],[_objectIDs,_groupIDs,_triggerIDs,_waypointIDs,_logicIDs,_markerIDs]]


//Wait for mission to start
waitUntil{ time > 0 };

//Initialise curves, their keys and simulated objects
call BIS_fnc_keyframeAnimation_init;


//Some test scripts


//[BIS_Rautake_Timeline02 call BIS_fnc_timeline_getsimulatedcurves select 0, BIS_Rautake_Timeline02 call BIS_fnc_timeline_getsimulatedcurves select 0 call BIS_fnc_richcurve_computeKeys ] call BIS_fnc_richcurve_setkeys

//Get timeline curve
//[BIS_Rautake_Timeline02] call BIS_fnc_timeline_getSimulatedCurves

//Get curve simulated object
//[ [ BIS_Rautake_Timeline02 ] call BIS_fnc_timeline_getSimulatedCurves select 0 ] call BIS_fnc_richCurve_getSimulatedObjects

//Get Key time
//(([BIS_Rautake_Timeline02] call BIS_fnc_timeline_getsimulatedcurves) call BIS_fnc_richcurve_getKeys select 5) call BIS_fnc_key_gettime


//Scripted event for key reached
//{
// [
//  _x,
//  "reached",
//  {
//   params[ "_key" ];
//   hint format[ "done: %1", _key ];
//  }
// ] call BIS_fnc_addScriptedEventHandler;
//}forEach (([BIS_Rautake_Timeline02] call BIS_fnc_timeline_getsimulatedcurves) call BIS_fnc_richcurve_getKeys );
//
//

//Play the time line
[ BIS_Rautake_timeline02 ] call BIS_fnc_timeline_play

 

  • Timelines, Curves and Keys do not use the module framework to initialise, instead they are initialised via BIS_fnc_keyframeAnimation_init which is started preInit so your timelines are missed and never initialised( who would of thought it, a BI module that does not use BI's own module framework to initialise the module 🙄 )
  • Removed UAV crew so they do not fight timeline animation. Otherwise the UAV does not want to go anywhere( cannot be bothered to deep dive this one, seems to work perfectly in your base mission, of which the UAV has a driver ).

 

Commented most of the stuff I have changed/added.

FIXED_MISSION

  • Thanks 1

Share this post


Link to post
Share on other sites

Big thanks for the help! I will dive into it and see how I can apply this to my normal stuff.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×