-- {\v/} Domino auto-generated LUA script file
|
|
--
|
|
-- Script document: domino/user/windycity/side_missions/contract_lair/cl_deactivationscript/cl_deactivationscript.domino.xml
|
|
-- User graph: CL09
|
|
--
|
|
--
|
|
-- DO NOT EDIT MANUALLY THIS FILE OR YOUR CHANGES WILL BE LOST!
|
|
-- Please modify the original Domino script instead. You have been warned.
|
|
|
|
-- *** SCRIPT INPUT REFLECTION ***
|
|
--[[
|
|
<InputReflection />
|
|
]]--
|
|
-- *** END OF SCRIPT INPUT REFLECTION ***
|
|
|
|
|
|
export = {
|
|
};
|
|
|
|
|
|
function export:LuaDependencies()
|
|
return {
|
|
};
|
|
end;
|
|
|
|
function export:Create(cbox)
|
|
-- External box dependencies
|
|
cbox:RegisterBox("Domino/System/GetPlayerID.lua");
|
|
cbox:RegisterBox("Domino/System/MissionController_v2.lua");
|
|
cbox:RegisterBox("Domino/System/MissionLayer_v2.lua");
|
|
cbox:RegisterBox("Domino/System/OnceOnly_v2.lua");
|
|
cbox:RegisterBox("Domino/System/ProximityMonitor.lua");
|
|
end;
|
|
|
|
function export:Init(cbox)
|
|
local l0;
|
|
self.Player = nil;
|
|
self.MissionLayer = "CL_M09_Mission";
|
|
self.Mission = "MissionList.3004612924";
|
|
self.TagPointLayout = "2082960880227587783";
|
|
self[2] = cbox:CreateBox("Domino/System/MissionLayer_v2.lua");
|
|
l0 = self[2];
|
|
l0._graph = self;
|
|
l0.Loaded = DummyFunction;
|
|
l0.Unloaded = self.f_2_Unloaded;
|
|
l0.Reseted = DummyFunction;
|
|
self[1] = cbox:CreateBox("Domino/System/ProximityMonitor.lua");
|
|
l0 = self[1];
|
|
l0._graph = self;
|
|
l0.Enabled = DummyFunction;
|
|
l0.Disabled = DummyFunction;
|
|
l0.EnterRadius = DummyFunction;
|
|
l0.ExitRadius = self.f_1_ExitRadius;
|
|
self[6] = cbox:CreateBox("Domino/System/MissionLayer_v2.lua");
|
|
l0 = self[6];
|
|
l0._graph = self;
|
|
l0.Loaded = DummyFunction;
|
|
l0.Unloaded = DummyFunction;
|
|
l0.Reseted = DummyFunction;
|
|
self[5] = cbox:CreateBox("Domino/System/OnceOnly_v2.lua");
|
|
l0 = self[5];
|
|
l0._graph = self;
|
|
l0._DynamicAnchors = {
|
|
In = 2,
|
|
Out = 2,
|
|
};
|
|
l0.Out[0] = self.f_5_Out_0;
|
|
l0.Out[1] = self.f_5_Out_1;
|
|
l0.ResetOut = DummyFunction;
|
|
end;
|
|
|
|
function export:ShutDown()
|
|
for k,v in pairs(self) do if type(v) == "table" and v.ShutDown ~= self.ShutDown and v ~= self._graph and v.ShutDown ~= nil then v:ShutDown() end end;
|
|
end;
|
|
|
|
function export:In()
|
|
local l0;
|
|
l0 = Boxes[PathID("Domino/System/GetPlayerID.lua")];
|
|
l0._graph = self;
|
|
l0.Out = self.f_4_Out;
|
|
l0:In();
|
|
end;
|
|
|
|
function export:Stop()
|
|
local l0;
|
|
l0 = self[5];
|
|
l0:In(1);
|
|
end;
|
|
|
|
function export:f_2_Unloaded()
|
|
local l0;
|
|
self = self._graph;
|
|
l0 = Boxes[PathID("Domino/System/MissionController_v2.lua")];
|
|
l0.Mission = self.Mission;
|
|
l0.MissionName = nil;
|
|
l0._graph = self;
|
|
l0.Out = DummyFunction;
|
|
l0:Stop();
|
|
end;
|
|
|
|
function export:f_1_ExitRadius()
|
|
local l0;
|
|
self = self._graph;
|
|
l0 = self[5];
|
|
l0:In(0);
|
|
self:en_1();
|
|
l0 = self[1];
|
|
l0:Disable();
|
|
end;
|
|
|
|
function export:f_4_Out()
|
|
local l0;
|
|
self = self._graph;
|
|
l0 = Boxes[PathID("Domino/System/GetPlayerID.lua")];
|
|
self.Player = l0.PlayerID;
|
|
self:en_1();
|
|
l0 = self[1];
|
|
l0:Enable();
|
|
end;
|
|
|
|
function export:f_5_Out_0()
|
|
local l0;
|
|
self = self._graph;
|
|
l0 = self[2];
|
|
l0.LayerName = self.MissionLayer;
|
|
l0:Unload();
|
|
end;
|
|
|
|
function export:f_5_Out_1()
|
|
local l0;
|
|
self = self._graph;
|
|
l0 = self[6];
|
|
l0.LayerName = self.MissionLayer;
|
|
l0:Unload();
|
|
end;
|
|
|
|
function export:en_1()
|
|
local l0;
|
|
l0 = self[1];
|
|
l0.Entity1 = self.Player;
|
|
l0.Entity2 = self.TagPointLayout;
|
|
l0.Radius = 200;
|
|
l0.CheckNow = 1;
|
|
end;
|
|
|
|
-- Empty out anchor definitions
|
|
_compilerVersion = 4;
|