frankie-on-platform/Sources/arm/node/Spawn.hx

637 lines
35 KiB
Haxe
Raw Normal View History

2019-04-05 04:40:44 +02:00
package arm.node;
@:keep class Spawn extends armory.logicnode.LogicTree {
var functionNodes:Map<String, armory.logicnode.FunctionNode>;
var functionOutputNodes:Map<String, armory.logicnode.FunctionOutputNode>;
public function new() {
super();
name = "Spawn";
this.functionNodes = new Map();
this.functionOutputNodes = new Map();
notifyOnAdd(add);
}
override public function add() {
var _CallFunction_012 = new armory.logicnode.CallFunctionNode(this);
var _SetRotation = new armory.logicnode.SetRotationNode(this);
var _Merge_002 = new armory.logicnode.MergeNode(this);
var _SetProperty_005 = new armory.logicnode.SetPropertyNode(this);
var _Merge_001 = new armory.logicnode.MergeNode(this);
var _Gate = new armory.logicnode.GateNode(this);
_Gate.property0 = "Equal";
_Gate.property1 = 9.999999747378752e-05;
var _OnEvent = new armory.logicnode.OnEventNode(this);
_OnEvent.property0 = "spawn";
_OnEvent.addOutputs([_Gate]);
_Gate.addInput(_OnEvent, 0);
var _Integer_004 = new armory.logicnode.IntegerNode(this);
_Integer_004.addInput(new armory.logicnode.IntegerNode(this, 5), 0);
_Integer_004.addOutputs([_Gate]);
_Gate.addInput(_Integer_004, 0);
var _GetProperty_009 = new armory.logicnode.GetPropertyNode(this);
_GetProperty_009.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
_GetProperty_009.addInput(new armory.logicnode.StringNode(this, "spawn_nb"), 0);
var _Gate_001 = new armory.logicnode.GateNode(this);
_Gate_001.property0 = "Equal";
_Gate_001.property1 = 9.999999747378752e-05;
_Gate_001.addInput(_Gate, 1);
var _Integer_005 = new armory.logicnode.IntegerNode(this);
_Integer_005.addInput(new armory.logicnode.IntegerNode(this, 6), 0);
_Integer_005.addOutputs([_Gate_001]);
_Gate_001.addInput(_Integer_005, 0);
_Gate_001.addInput(_GetProperty_009, 0);
_Gate_001.addOutputs([_Merge_001]);
var _SetProperty_007 = new armory.logicnode.SetPropertyNode(this);
_SetProperty_007.addInput(_Gate_001, 1);
_SetProperty_007.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
_SetProperty_007.addInput(new armory.logicnode.StringNode(this, "spawn_rot"), 0);
var _Math_003 = new armory.logicnode.MathNode(this);
_Math_003.property0 = "Add";
_Math_003.property1 = "false";
var _Float_002 = new armory.logicnode.FloatNode(this);
_Float_002.addInput(new armory.logicnode.FloatNode(this, 180.0), 0);
_Float_002.addOutputs([_Math_003]);
_Math_003.addInput(_Float_002, 0);
_Math_003.addInput(new armory.logicnode.FloatNode(this, -0.9292187690734863), 0);
_Math_003.addOutputs([_SetProperty_007]);
_SetProperty_007.addInput(_Math_003, 0);
_SetProperty_007.addOutputs([_Merge_002]);
_Gate_001.addOutputs([_SetProperty_007]);
_GetProperty_009.addOutputs([_Gate, _Gate_001]);
_Gate.addInput(_GetProperty_009, 0);
_Gate.addOutputs([_Merge_001]);
_Gate.addOutputs([_Gate_001]);
_Merge_001.addInput(_Gate, 0);
_Merge_001.addInput(_Gate_001, 0);
_Merge_001.addOutputs([_SetProperty_005]);
_SetProperty_005.addInput(_Merge_001, 0);
_SetProperty_005.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
_SetProperty_005.addInput(new armory.logicnode.StringNode(this, "spawn_rot"), 0);
var _Math_004 = new armory.logicnode.MathNode(this);
_Math_004.property0 = "Add";
_Math_004.property1 = "false";
var _Float_003 = new armory.logicnode.FloatNode(this);
_Float_003.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
_Float_003.addOutputs([_Math_004]);
_Math_004.addInput(_Float_003, 0);
_Math_004.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
_Math_004.addOutputs([_SetProperty_005]);
_SetProperty_005.addInput(_Math_004, 0);
_SetProperty_005.addOutputs([_Merge_002]);
_Merge_002.addInput(_SetProperty_005, 0);
_Merge_002.addInput(_SetProperty_007, 0);
_Merge_002.addOutputs([_SetRotation]);
_SetRotation.addInput(_Merge_002, 0);
_SetRotation.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
var _Vector_001 = new armory.logicnode.VectorNode(this);
_Vector_001.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
_Vector_001.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
var _GetProperty_001 = new armory.logicnode.GetPropertyNode(this);
_GetProperty_001.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
_GetProperty_001.addInput(new armory.logicnode.StringNode(this, "spawn_rot"), 0);
_GetProperty_001.addOutputs([_Vector_001]);
_Vector_001.addInput(_GetProperty_001, 0);
_Vector_001.addOutputs([_SetRotation]);
_SetRotation.addInput(_Vector_001, 0);
var _CallFunction_007 = new armory.logicnode.CallFunctionNode(this);
_CallFunction_007.addInput(_SetRotation, 0);
var _GetTrait_001 = new armory.logicnode.GetTraitNode(this);
var _Object_001 = new armory.logicnode.ObjectNode(this);
_Object_001.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0);
_Object_001.addOutputs([_GetTrait_001]);
_GetTrait_001.addInput(_Object_001, 0);
_GetTrait_001.addInput(new armory.logicnode.StringNode(this, "Spawn"), 0);
var _CallFunction_008 = new armory.logicnode.CallFunctionNode(this);
_CallFunction_008.addInput(_SetRotation, 0);
_CallFunction_008.addInput(_GetTrait_001, 0);
_CallFunction_008.addInput(new armory.logicnode.StringNode(this, "go_spawn"), 0);
var _GetLocation_005 = new armory.logicnode.GetLocationNode(this);
_GetLocation_005.addInput(new armory.logicnode.ObjectNode(this, "Spawn1"), 0);
_GetLocation_005.addOutputs([_CallFunction_008]);
_CallFunction_008.addInput(_GetLocation_005, 0);
var _Integer_028 = new armory.logicnode.IntegerNode(this);
_Integer_028.addInput(new armory.logicnode.IntegerNode(this, 1), 0);
_Integer_028.addOutputs([_CallFunction_008]);
_CallFunction_008.addInput(_Integer_028, 0);
_CallFunction_008.addOutputs([new armory.logicnode.NullNode(this)]);
_CallFunction_008.addOutputs([new armory.logicnode.NullNode(this)]);
var _CallFunction_009 = new armory.logicnode.CallFunctionNode(this);
_CallFunction_009.addInput(_SetRotation, 0);
_CallFunction_009.addInput(_GetTrait_001, 0);
_CallFunction_009.addInput(new armory.logicnode.StringNode(this, "go_spawn"), 0);
var _GetLocation_007 = new armory.logicnode.GetLocationNode(this);
_GetLocation_007.addInput(new armory.logicnode.ObjectNode(this, "Spawn2"), 0);
_GetLocation_007.addOutputs([_CallFunction_009]);
_CallFunction_009.addInput(_GetLocation_007, 0);
var _Integer_015 = new armory.logicnode.IntegerNode(this);
_Integer_015.addInput(new armory.logicnode.IntegerNode(this, 2), 0);
_Integer_015.addOutputs([_CallFunction_009]);
_CallFunction_009.addInput(_Integer_015, 0);
_CallFunction_009.addOutputs([new armory.logicnode.NullNode(this)]);
_CallFunction_009.addOutputs([new armory.logicnode.NullNode(this)]);
var _CallFunction_010 = new armory.logicnode.CallFunctionNode(this);
_CallFunction_010.addInput(_SetRotation, 0);
_CallFunction_010.addInput(_GetTrait_001, 0);
_CallFunction_010.addInput(new armory.logicnode.StringNode(this, "go_spawn"), 0);
var _GetLocation_006 = new armory.logicnode.GetLocationNode(this);
_GetLocation_006.addInput(new armory.logicnode.ObjectNode(this, "Spawn3"), 0);
_GetLocation_006.addOutputs([_CallFunction_010]);
_CallFunction_010.addInput(_GetLocation_006, 0);
var _Integer_016 = new armory.logicnode.IntegerNode(this);
_Integer_016.addInput(new armory.logicnode.IntegerNode(this, 3), 0);
_Integer_016.addOutputs([_CallFunction_010]);
_CallFunction_010.addInput(_Integer_016, 0);
_CallFunction_010.addOutputs([new armory.logicnode.NullNode(this)]);
_CallFunction_010.addOutputs([new armory.logicnode.NullNode(this)]);
var _CallFunction_011 = new armory.logicnode.CallFunctionNode(this);
_CallFunction_011.addInput(_SetRotation, 0);
_CallFunction_011.addInput(_GetTrait_001, 0);
_CallFunction_011.addInput(new armory.logicnode.StringNode(this, "go_spawn"), 0);
var _GetLocation_009 = new armory.logicnode.GetLocationNode(this);
_GetLocation_009.addInput(new armory.logicnode.ObjectNode(this, "Spawn4"), 0);
_GetLocation_009.addOutputs([_CallFunction_011]);
_CallFunction_011.addInput(_GetLocation_009, 0);
var _Integer_018 = new armory.logicnode.IntegerNode(this);
_Integer_018.addInput(new armory.logicnode.IntegerNode(this, 4), 0);
_Integer_018.addOutputs([_CallFunction_011]);
_CallFunction_011.addInput(_Integer_018, 0);
_CallFunction_011.addOutputs([new armory.logicnode.NullNode(this)]);
_CallFunction_011.addOutputs([new armory.logicnode.NullNode(this)]);
var _CallFunction_013 = new armory.logicnode.CallFunctionNode(this);
_CallFunction_013.addInput(_SetRotation, 0);
_CallFunction_013.addInput(_GetTrait_001, 0);
_CallFunction_013.addInput(new armory.logicnode.StringNode(this, "go_spawn"), 0);
var _GetLocation_012 = new armory.logicnode.GetLocationNode(this);
_GetLocation_012.addInput(new armory.logicnode.ObjectNode(this, "Spawn6"), 0);
_GetLocation_012.addOutputs([_CallFunction_013]);
_CallFunction_013.addInput(_GetLocation_012, 0);
var _Integer_020 = new armory.logicnode.IntegerNode(this);
_Integer_020.addInput(new armory.logicnode.IntegerNode(this, 6), 0);
_Integer_020.addOutputs([_CallFunction_013]);
_CallFunction_013.addInput(_Integer_020, 0);
_CallFunction_013.addOutputs([new armory.logicnode.NullNode(this)]);
_CallFunction_013.addOutputs([new armory.logicnode.NullNode(this)]);
var _CallFunction_014 = new armory.logicnode.CallFunctionNode(this);
_CallFunction_014.addInput(_SetRotation, 0);
_CallFunction_014.addInput(_GetTrait_001, 0);
_CallFunction_014.addInput(new armory.logicnode.StringNode(this, "go_spawn"), 0);
var _GetLocation_011 = new armory.logicnode.GetLocationNode(this);
_GetLocation_011.addInput(new armory.logicnode.ObjectNode(this, "Spawn7"), 0);
_GetLocation_011.addOutputs([_CallFunction_014]);
_CallFunction_014.addInput(_GetLocation_011, 0);
var _Integer_019 = new armory.logicnode.IntegerNode(this);
_Integer_019.addInput(new armory.logicnode.IntegerNode(this, 7), 0);
_Integer_019.addOutputs([_CallFunction_014]);
_CallFunction_014.addInput(_Integer_019, 0);
_CallFunction_014.addOutputs([new armory.logicnode.NullNode(this)]);
_CallFunction_014.addOutputs([new armory.logicnode.NullNode(this)]);
var _CallFunction_015 = new armory.logicnode.CallFunctionNode(this);
_CallFunction_015.addInput(_SetRotation, 0);
_CallFunction_015.addInput(_GetTrait_001, 0);
_CallFunction_015.addInput(new armory.logicnode.StringNode(this, "go_spawn"), 0);
var _GetLocation_013 = new armory.logicnode.GetLocationNode(this);
_GetLocation_013.addInput(new armory.logicnode.ObjectNode(this, "Spawn8"), 0);
_GetLocation_013.addOutputs([_CallFunction_015]);
_CallFunction_015.addInput(_GetLocation_013, 0);
var _Integer_029 = new armory.logicnode.IntegerNode(this);
_Integer_029.addInput(new armory.logicnode.IntegerNode(this, 8), 0);
_Integer_029.addOutputs([_CallFunction_015]);
_CallFunction_015.addInput(_Integer_029, 0);
_CallFunction_015.addOutputs([new armory.logicnode.NullNode(this)]);
_CallFunction_015.addOutputs([new armory.logicnode.NullNode(this)]);
_GetTrait_001.addOutputs([_CallFunction_007, _CallFunction_008, _CallFunction_009, _CallFunction_010, _CallFunction_011, _CallFunction_012, _CallFunction_013, _CallFunction_014, _CallFunction_015]);
_CallFunction_007.addInput(_GetTrait_001, 0);
_CallFunction_007.addInput(new armory.logicnode.StringNode(this, "go_spawn"), 0);
var _GetLocation_010 = new armory.logicnode.GetLocationNode(this);
_GetLocation_010.addInput(new armory.logicnode.ObjectNode(this, "Spawn0"), 0);
_GetLocation_010.addOutputs([_CallFunction_007]);
_CallFunction_007.addInput(_GetLocation_010, 0);
var _Integer_027 = new armory.logicnode.IntegerNode(this);
_Integer_027.addInput(new armory.logicnode.IntegerNode(this, 0), 0);
_Integer_027.addOutputs([_CallFunction_007]);
_CallFunction_007.addInput(_Integer_027, 0);
_CallFunction_007.addOutputs([new armory.logicnode.NullNode(this)]);
_CallFunction_007.addOutputs([new armory.logicnode.NullNode(this)]);
_SetRotation.addOutputs([_CallFunction_007, _CallFunction_008, _CallFunction_009, _CallFunction_010, _CallFunction_011, _CallFunction_012, _CallFunction_013, _CallFunction_014, _CallFunction_015]);
_CallFunction_012.addInput(_SetRotation, 0);
_CallFunction_012.addInput(_GetTrait_001, 0);
_CallFunction_012.addInput(new armory.logicnode.StringNode(this, "go_spawn"), 0);
var _GetLocation_008 = new armory.logicnode.GetLocationNode(this);
_GetLocation_008.addInput(new armory.logicnode.ObjectNode(this, "Spawn5"), 0);
_GetLocation_008.addOutputs([_CallFunction_012]);
_CallFunction_012.addInput(_GetLocation_008, 0);
var _Integer_017 = new armory.logicnode.IntegerNode(this);
_Integer_017.addInput(new armory.logicnode.IntegerNode(this, 5), 0);
_Integer_017.addOutputs([_CallFunction_012]);
_CallFunction_012.addInput(_Integer_017, 0);
_CallFunction_012.addOutputs([new armory.logicnode.NullNode(this)]);
_CallFunction_012.addOutputs([new armory.logicnode.NullNode(this)]);
var _FunctionOutput_001 = new armory.logicnode.FunctionOutputNode(this);
this.functionOutputNodes.set("_FunctionOutput_001", _FunctionOutput_001);
var _SetProperty_004 = new armory.logicnode.SetPropertyNode(this);
var _SetLocation_010 = new armory.logicnode.SetLocationNode(this);
var _Branch_012 = new armory.logicnode.BranchNode(this);
var _Function_001 = new armory.logicnode.FunctionNode(this);
this.functionNodes.set("_Function_001", _Function_001);
_Function_001.addOutputs([_Branch_012]);
_Function_001.addOutputs([_SetLocation_010]);
var _Compare_013 = new armory.logicnode.CompareNode(this);
_Compare_013.property0 = "Equal";
_Compare_013.property1 = 9.999999747378752e-05;
_Compare_013.addInput(_Function_001, 2);
var _GetProperty_008 = new armory.logicnode.GetPropertyNode(this);
_GetProperty_008.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
_GetProperty_008.addInput(new armory.logicnode.StringNode(this, "spawn_nb"), 0);
_GetProperty_008.addOutputs([_Compare_013]);
_Compare_013.addInput(_GetProperty_008, 0);
_Compare_013.addOutputs([_Branch_012]);
_Function_001.addOutputs([_Compare_013]);
_Branch_012.addInput(_Function_001, 0);
_Branch_012.addInput(_Compare_013, 0);
_Branch_012.addOutputs([_SetLocation_010]);
_Branch_012.addOutputs([new armory.logicnode.NullNode(this)]);
_SetLocation_010.addInput(_Branch_012, 0);
_SetLocation_010.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
_SetLocation_010.addInput(_Function_001, 1);
_SetLocation_010.addOutputs([_SetProperty_004]);
_SetProperty_004.addInput(_SetLocation_010, 0);
_SetProperty_004.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
_SetProperty_004.addInput(new armory.logicnode.StringNode(this, "courrir_on"), 0);
var _Boolean_006 = new armory.logicnode.BooleanNode(this);
_Boolean_006.addInput(new armory.logicnode.BooleanNode(this, false), 0);
_Boolean_006.addOutputs([_SetProperty_004]);
_SetProperty_004.addInput(_Boolean_006, 0);
_SetProperty_004.addOutputs([_FunctionOutput_001]);
_FunctionOutput_001.addInput(_SetProperty_004, 0);
_FunctionOutput_001.addInput(new armory.logicnode.NullNode(this), 0);
var _SetVisible_011 = new armory.logicnode.SetVisibleNode(this);
var _Loop_001 = new armory.logicnode.LoopNode(this);
var _Loop_002 = new armory.logicnode.LoopNode(this);
var _OnInit_001 = new armory.logicnode.OnInitNode(this);
_OnInit_001.addOutputs([_Loop_002]);
_Loop_002.addInput(_OnInit_001, 0);
_Loop_002.addInput(new armory.logicnode.IntegerNode(this, 1), 0);
_Loop_002.addInput(new armory.logicnode.IntegerNode(this, 8), 0);
_Loop_002.addOutputs([_Loop_001]);
var _ConcatenateString_001 = new armory.logicnode.ConcatenateStringNode(this);
var _String_001 = new armory.logicnode.StringNode(this);
_String_001.addInput(new armory.logicnode.StringNode(this, "Spawn"), 0);
_String_001.addOutputs([_ConcatenateString_001]);
_ConcatenateString_001.addInput(_String_001, 0);
_ConcatenateString_001.addInput(_Loop_002, 1);
var _GetObject_001 = new armory.logicnode.GetObjectNode(this);
_GetObject_001.addInput(_ConcatenateString_001, 0);
var _GetChildren_001 = new armory.logicnode.GetChildrenNode(this);
_GetChildren_001.addInput(_GetObject_001, 0);
var _ArrayGet_001 = new armory.logicnode.ArrayGetNode(this);
_ArrayGet_001.addInput(_GetChildren_001, 0);
_ArrayGet_001.addInput(_Loop_001, 1);
_ArrayGet_001.addOutputs([_SetVisible_011]);
var _ArrayLength_001 = new armory.logicnode.ArrayLengthNode(this);
_ArrayLength_001.addInput(_GetChildren_001, 0);
_ArrayLength_001.addOutputs([_Loop_001]);
_GetChildren_001.addOutputs([_ArrayGet_001, _ArrayLength_001]);
_GetObject_001.addOutputs([_GetChildren_001]);
_ConcatenateString_001.addOutputs([_GetObject_001]);
_Loop_002.addOutputs([_ConcatenateString_001]);
_Loop_002.addOutputs([new armory.logicnode.NullNode(this)]);
_Loop_001.addInput(_Loop_002, 0);
_Loop_001.addInput(new armory.logicnode.IntegerNode(this, 0), 0);
_Loop_001.addInput(_ArrayLength_001, 0);
_Loop_001.addOutputs([_SetVisible_011]);
_Loop_001.addOutputs([_ArrayGet_001]);
_Loop_001.addOutputs([new armory.logicnode.NullNode(this)]);
_SetVisible_011.addInput(_Loop_001, 0);
_SetVisible_011.addInput(_ArrayGet_001, 0);
_SetVisible_011.addInput(new armory.logicnode.BooleanNode(this, false), 0);
_SetVisible_011.addOutputs([new armory.logicnode.NullNode(this)]);
var _CallFunction_016 = new armory.logicnode.CallFunctionNode(this);
var _OnVolumeTrigger_014 = new armory.logicnode.OnVolumeTriggerNode(this);
_OnVolumeTrigger_014.property0 = "Enter";
_OnVolumeTrigger_014.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0);
_OnVolumeTrigger_014.addInput(new armory.logicnode.ObjectNode(this, "Spawn8"), 0);
_OnVolumeTrigger_014.addOutputs([_CallFunction_016]);
_CallFunction_016.addInput(_OnVolumeTrigger_014, 0);
var _SelfTrait = new armory.logicnode.SelfTraitNode(this);
_SelfTrait.addOutputs([_SelfTrait, _SelfTrait]);
_CallFunction_016.addInput(_SelfTrait, 0);
_CallFunction_016.addInput(new armory.logicnode.StringNode(this, "set_spawn_nb"), 0);
var _Integer_030 = new armory.logicnode.IntegerNode(this);
_Integer_030.addInput(new armory.logicnode.IntegerNode(this, 8), 0);
_Integer_030.addOutputs([_CallFunction_016]);
_CallFunction_016.addInput(_Integer_030, 0);
_CallFunction_016.addOutputs([new armory.logicnode.NullNode(this)]);
_CallFunction_016.addOutputs([new armory.logicnode.NullNode(this)]);
var _CallFunction_006 = new armory.logicnode.CallFunctionNode(this);
var _OnVolumeTrigger_013 = new armory.logicnode.OnVolumeTriggerNode(this);
_OnVolumeTrigger_013.property0 = "Enter";
_OnVolumeTrigger_013.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0);
_OnVolumeTrigger_013.addInput(new armory.logicnode.ObjectNode(this, "Spawn7"), 0);
_OnVolumeTrigger_013.addOutputs([_CallFunction_006]);
_CallFunction_006.addInput(_OnVolumeTrigger_013, 0);
_CallFunction_006.addInput(_SelfTrait, 0);
_CallFunction_006.addInput(new armory.logicnode.StringNode(this, "set_spawn_nb"), 0);
var _Integer_026 = new armory.logicnode.IntegerNode(this);
_Integer_026.addInput(new armory.logicnode.IntegerNode(this, 7), 0);
_Integer_026.addOutputs([_CallFunction_006]);
_CallFunction_006.addInput(_Integer_026, 0);
_CallFunction_006.addOutputs([new armory.logicnode.NullNode(this)]);
_CallFunction_006.addOutputs([new armory.logicnode.NullNode(this)]);
var _CallFunction_003 = new armory.logicnode.CallFunctionNode(this);
var _OnVolumeTrigger_010 = new armory.logicnode.OnVolumeTriggerNode(this);
_OnVolumeTrigger_010.property0 = "Enter";
_OnVolumeTrigger_010.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0);
_OnVolumeTrigger_010.addInput(new armory.logicnode.ObjectNode(this, "Spawn4"), 0);
_OnVolumeTrigger_010.addOutputs([_CallFunction_003]);
_CallFunction_003.addInput(_OnVolumeTrigger_010, 0);
_CallFunction_003.addInput(_SelfTrait, 0);
_CallFunction_003.addInput(new armory.logicnode.StringNode(this, "set_spawn_nb"), 0);
var _Integer_023 = new armory.logicnode.IntegerNode(this);
_Integer_023.addInput(new armory.logicnode.IntegerNode(this, 4), 0);
_Integer_023.addOutputs([_CallFunction_003]);
_CallFunction_003.addInput(_Integer_023, 0);
_CallFunction_003.addOutputs([new armory.logicnode.NullNode(this)]);
_CallFunction_003.addOutputs([new armory.logicnode.NullNode(this)]);
var _CallFunction = new armory.logicnode.CallFunctionNode(this);
var _OnVolumeTrigger_007 = new armory.logicnode.OnVolumeTriggerNode(this);
_OnVolumeTrigger_007.property0 = "Enter";
_OnVolumeTrigger_007.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0);
_OnVolumeTrigger_007.addInput(new armory.logicnode.ObjectNode(this, "Spawn1"), 0);
_OnVolumeTrigger_007.addOutputs([_CallFunction]);
_CallFunction.addInput(_OnVolumeTrigger_007, 0);
_CallFunction.addInput(_SelfTrait, 0);
_CallFunction.addInput(new armory.logicnode.StringNode(this, "set_spawn_nb"), 0);
var _Integer_022 = new armory.logicnode.IntegerNode(this);
_Integer_022.addInput(new armory.logicnode.IntegerNode(this, 1), 0);
_Integer_022.addOutputs([_CallFunction]);
_CallFunction.addInput(_Integer_022, 0);
_CallFunction.addInput(new armory.logicnode.NullNode(this), 0);
_CallFunction.addOutputs([new armory.logicnode.NullNode(this)]);
_CallFunction.addOutputs([new armory.logicnode.NullNode(this)]);
var _CallFunction_005 = new armory.logicnode.CallFunctionNode(this);
var _OnVolumeTrigger_012 = new armory.logicnode.OnVolumeTriggerNode(this);
_OnVolumeTrigger_012.property0 = "Enter";
_OnVolumeTrigger_012.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0);
_OnVolumeTrigger_012.addInput(new armory.logicnode.ObjectNode(this, "Spawn6"), 0);
_OnVolumeTrigger_012.addOutputs([_CallFunction_005]);
_CallFunction_005.addInput(_OnVolumeTrigger_012, 0);
_CallFunction_005.addInput(_SelfTrait, 0);
_CallFunction_005.addInput(new armory.logicnode.StringNode(this, "set_spawn_nb"), 0);
var _Integer_025 = new armory.logicnode.IntegerNode(this);
_Integer_025.addInput(new armory.logicnode.IntegerNode(this, 6), 0);
_Integer_025.addOutputs([_CallFunction_005]);
_CallFunction_005.addInput(_Integer_025, 0);
_CallFunction_005.addOutputs([new armory.logicnode.NullNode(this)]);
_CallFunction_005.addOutputs([new armory.logicnode.NullNode(this)]);
var _CallFunction_002 = new armory.logicnode.CallFunctionNode(this);
var _OnVolumeTrigger_009 = new armory.logicnode.OnVolumeTriggerNode(this);
_OnVolumeTrigger_009.property0 = "Enter";
_OnVolumeTrigger_009.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0);
_OnVolumeTrigger_009.addInput(new armory.logicnode.ObjectNode(this, "Spawn3"), 0);
_OnVolumeTrigger_009.addOutputs([_CallFunction_002]);
_CallFunction_002.addInput(_OnVolumeTrigger_009, 0);
_CallFunction_002.addInput(_SelfTrait, 0);
_CallFunction_002.addInput(new armory.logicnode.StringNode(this, "set_spawn_nb"), 0);
var _Integer_021 = new armory.logicnode.IntegerNode(this);
_Integer_021.addInput(new armory.logicnode.IntegerNode(this, 3), 0);
_Integer_021.addOutputs([_CallFunction_002]);
_CallFunction_002.addInput(_Integer_021, 0);
_CallFunction_002.addOutputs([new armory.logicnode.NullNode(this)]);
_CallFunction_002.addOutputs([new armory.logicnode.NullNode(this)]);
var _CallFunction_001 = new armory.logicnode.CallFunctionNode(this);
var _OnVolumeTrigger_008 = new armory.logicnode.OnVolumeTriggerNode(this);
_OnVolumeTrigger_008.property0 = "Enter";
_OnVolumeTrigger_008.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0);
_OnVolumeTrigger_008.addInput(new armory.logicnode.ObjectNode(this, "Spawn2"), 0);
_OnVolumeTrigger_008.addOutputs([_CallFunction_001]);
_CallFunction_001.addInput(_OnVolumeTrigger_008, 0);
_CallFunction_001.addInput(_SelfTrait, 0);
_CallFunction_001.addInput(new armory.logicnode.StringNode(this, "set_spawn_nb"), 0);
var _Integer_012 = new armory.logicnode.IntegerNode(this);
_Integer_012.addInput(new armory.logicnode.IntegerNode(this, 2), 0);
_Integer_012.addOutputs([_CallFunction_001]);
_CallFunction_001.addInput(_Integer_012, 0);
_CallFunction_001.addOutputs([new armory.logicnode.NullNode(this)]);
_CallFunction_001.addOutputs([new armory.logicnode.NullNode(this)]);
var _CallFunction_004 = new armory.logicnode.CallFunctionNode(this);
var _OnVolumeTrigger_011 = new armory.logicnode.OnVolumeTriggerNode(this);
_OnVolumeTrigger_011.property0 = "Enter";
_OnVolumeTrigger_011.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0);
_OnVolumeTrigger_011.addInput(new armory.logicnode.ObjectNode(this, "Spawn5"), 0);
_OnVolumeTrigger_011.addOutputs([_CallFunction_004]);
_CallFunction_004.addInput(_OnVolumeTrigger_011, 0);
_CallFunction_004.addInput(_SelfTrait, 0);
_CallFunction_004.addInput(new armory.logicnode.StringNode(this, "set_spawn_nb"), 0);
var _Integer_024 = new armory.logicnode.IntegerNode(this);
_Integer_024.addInput(new armory.logicnode.IntegerNode(this, 5), 0);
_Integer_024.addOutputs([_CallFunction_004]);
_CallFunction_004.addInput(_Integer_024, 0);
_CallFunction_004.addOutputs([new armory.logicnode.NullNode(this)]);
_CallFunction_004.addOutputs([new armory.logicnode.NullNode(this)]);
var _FunctionOutput = new armory.logicnode.FunctionOutputNode(this);
this.functionOutputNodes.set("_FunctionOutput", _FunctionOutput);
var _Loop = new armory.logicnode.LoopNode(this);
var _SetProperty_009 = new armory.logicnode.SetPropertyNode(this);
var _IsTrue_005 = new armory.logicnode.IsTrueNode(this);
var _Function = new armory.logicnode.FunctionNode(this);
this.functionNodes.set("_Function", _Function);
_Function.addOutputs([_IsTrue_005]);
var _Compare_015 = new armory.logicnode.CompareNode(this);
_Compare_015.property0 = "Less";
_Compare_015.property1 = 9.999999747378752e-05;
var _GetProperty_005 = new armory.logicnode.GetPropertyNode(this);
_GetProperty_005.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
_GetProperty_005.addInput(new armory.logicnode.StringNode(this, "spawn_nb"), 0);
_GetProperty_005.addOutputs([_Compare_015]);
_Compare_015.addInput(_GetProperty_005, 0);
_Compare_015.addInput(_Function, 1);
_Compare_015.addOutputs([_IsTrue_005]);
var _ConcatenateString = new armory.logicnode.ConcatenateStringNode(this);
var _String = new armory.logicnode.StringNode(this);
_String.addInput(new armory.logicnode.StringNode(this, "Spawn"), 0);
_String.addOutputs([_ConcatenateString]);
_ConcatenateString.addInput(_String, 0);
_ConcatenateString.addInput(_Function, 1);
var _GetObject = new armory.logicnode.GetObjectNode(this);
_GetObject.addInput(_ConcatenateString, 0);
var _GetChildren = new armory.logicnode.GetChildrenNode(this);
_GetChildren.addInput(_GetObject, 0);
var _ArrayGet = new armory.logicnode.ArrayGetNode(this);
_ArrayGet.addInput(_GetChildren, 0);
_ArrayGet.addInput(_Loop, 1);
var _SetVisible_010 = new armory.logicnode.SetVisibleNode(this);
_SetVisible_010.addInput(_Loop, 0);
_SetVisible_010.addInput(_ArrayGet, 0);
_SetVisible_010.addInput(new armory.logicnode.BooleanNode(this, true), 0);
_SetVisible_010.addOutputs([new armory.logicnode.NullNode(this)]);
_ArrayGet.addOutputs([_SetVisible_010]);
var _ArrayLength = new armory.logicnode.ArrayLengthNode(this);
_ArrayLength.addInput(_GetChildren, 0);
_ArrayLength.addOutputs([_Loop]);
_GetChildren.addOutputs([_ArrayGet, _ArrayLength]);
_GetObject.addOutputs([_GetChildren]);
_ConcatenateString.addOutputs([_GetObject]);
_Function.addOutputs([_SetProperty_009, _Compare_015, _ConcatenateString]);
_Function.addOutputs([new armory.logicnode.NullNode(this)]);
_IsTrue_005.addInput(_Function, 0);
_IsTrue_005.addInput(_Compare_015, 0);
_IsTrue_005.addOutputs([_SetProperty_009]);
_SetProperty_009.addInput(_IsTrue_005, 0);
_SetProperty_009.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
_SetProperty_009.addInput(new armory.logicnode.StringNode(this, "spawn_nb"), 0);
_SetProperty_009.addInput(_Function, 1);
_SetProperty_009.addOutputs([_Loop]);
_Loop.addInput(_SetProperty_009, 0);
_Loop.addInput(new armory.logicnode.IntegerNode(this, 0), 0);
_Loop.addInput(_ArrayLength, 0);
_Loop.addOutputs([_SetVisible_010]);
_Loop.addOutputs([_ArrayGet]);
_Loop.addOutputs([_FunctionOutput]);
_FunctionOutput.addInput(_Loop, 2);
_FunctionOutput.addInput(new armory.logicnode.NullNode(this), 0);
var _SetProperty = new armory.logicnode.SetPropertyNode(this);
var _OnInit = new armory.logicnode.OnInitNode(this);
_OnInit.addOutputs([_SetProperty]);
_SetProperty.addInput(_OnInit, 0);
_SetProperty.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
_SetProperty.addInput(new armory.logicnode.StringNode(this, "spawn_nb"), 0);
var _Integer = new armory.logicnode.IntegerNode(this);
_Integer.addInput(new armory.logicnode.IntegerNode(this, 0), 0);
_Integer.addOutputs([_SetProperty]);
_SetProperty.addInput(_Integer, 0);
_SetProperty.addOutputs([new armory.logicnode.NullNode(this)]);
var _SendEvent_001 = new armory.logicnode.SendEventNode(this);
var _Merge = new armory.logicnode.MergeNode(this);
var _IsTrue = new armory.logicnode.IsTrueNode(this);
var _OnUpdate = new armory.logicnode.OnUpdateNode(this);
_OnUpdate.property0 = "Update";
_OnUpdate.addOutputs([_IsTrue]);
_IsTrue.addInput(_OnUpdate, 0);
var _Compare = new armory.logicnode.CompareNode(this);
_Compare.property0 = "Less Equal";
_Compare.property1 = 9.999999747378752e-05;
var _SeparateXYZ = new armory.logicnode.SeparateVectorNode(this);
var _GetLocation = new armory.logicnode.GetLocationNode(this);
_GetLocation.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
_GetLocation.addOutputs([_SeparateXYZ]);
_SeparateXYZ.addInput(_GetLocation, 0);
_SeparateXYZ.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]);
_SeparateXYZ.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]);
_SeparateXYZ.addOutputs([_Compare]);
_Compare.addInput(_SeparateXYZ, 2);
var _Integer_001 = new armory.logicnode.IntegerNode(this);
_Integer_001.addInput(new armory.logicnode.IntegerNode(this, -5), 0);
_Integer_001.addOutputs([_Compare]);
_Compare.addInput(_Integer_001, 0);
_Compare.addOutputs([_IsTrue]);
_IsTrue.addInput(_Compare, 0);
_IsTrue.addOutputs([_Merge]);
_Merge.addInput(_IsTrue, 0);
var _SetProperty_001 = new armory.logicnode.SetPropertyNode(this);
var _Branch = new armory.logicnode.BranchNode(this);
var _IsTrue_001 = new armory.logicnode.IsTrueNode(this);
var _OnKeyboard = new armory.logicnode.OnKeyboardNode(this);
_OnKeyboard.property0 = "Started";
_OnKeyboard.property1 = "z";
_OnKeyboard.addOutputs([_IsTrue_001]);
_IsTrue_001.addInput(_OnKeyboard, 0);
var _KeyboardState = new armory.logicnode.KeyboardNode(this);
_KeyboardState.property0 = "Down";
_KeyboardState.property1 = "control";
var _IsTrue_002 = new armory.logicnode.IsTrueNode(this);
var _OnKeyboard_001 = new armory.logicnode.OnKeyboardNode(this);
_OnKeyboard_001.property0 = "Started";
_OnKeyboard_001.property1 = "a";
_OnKeyboard_001.addOutputs([_IsTrue_002]);
_IsTrue_002.addInput(_OnKeyboard_001, 0);
_IsTrue_002.addInput(_KeyboardState, 0);
var _Branch_001 = new armory.logicnode.BranchNode(this);
_Branch_001.addInput(_IsTrue_002, 0);
var _Compare_002 = new armory.logicnode.CompareNode(this);
_Compare_002.property0 = "Greater";
_Compare_002.property1 = 9.999999747378752e-05;
var _GetProperty = new armory.logicnode.GetPropertyNode(this);
_GetProperty.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
_GetProperty.addInput(new armory.logicnode.StringNode(this, "spawn_nb"), 0);
var _Math = new armory.logicnode.MathNode(this);
_Math.property0 = "Add";
_Math.property1 = "false";
_Math.addInput(_GetProperty, 0);
_Math.addInput(new armory.logicnode.FloatNode(this, 1.0), 0);
_Math.addOutputs([_SetProperty_001]);
var _Compare_001 = new armory.logicnode.CompareNode(this);
_Compare_001.property0 = "Less";
_Compare_001.property1 = 9.999999747378752e-05;
_Compare_001.addInput(_GetProperty, 0);
var _Integer_002 = new armory.logicnode.IntegerNode(this);
_Integer_002.addInput(new armory.logicnode.IntegerNode(this, 8), 0);
_Integer_002.addOutputs([_Compare_001]);
_Compare_001.addInput(_Integer_002, 0);
_Compare_001.addOutputs([_Branch]);
var _Math_001 = new armory.logicnode.MathNode(this);
_Math_001.property0 = "Subtract";
_Math_001.property1 = "false";
_Math_001.addInput(_GetProperty, 0);
_Math_001.addInput(new armory.logicnode.FloatNode(this, 1.0), 0);
var _SetProperty_002 = new armory.logicnode.SetPropertyNode(this);
_SetProperty_002.addInput(_Branch_001, 0);
_SetProperty_002.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
_SetProperty_002.addInput(new armory.logicnode.StringNode(this, "spawn_nb"), 0);
_SetProperty_002.addInput(_Math_001, 0);
_SetProperty_002.addOutputs([_Merge]);
_Math_001.addOutputs([_SetProperty_002]);
_GetProperty.addOutputs([_Math, _Compare_001, _Compare_002, _Math_001]);
_Compare_002.addInput(_GetProperty, 0);
var _Integer_003 = new armory.logicnode.IntegerNode(this);
_Integer_003.addInput(new armory.logicnode.IntegerNode(this, 0), 0);
_Integer_003.addOutputs([_Compare_002]);
_Compare_002.addInput(_Integer_003, 0);
_Compare_002.addOutputs([_Branch_001]);
_Branch_001.addInput(_Compare_002, 0);
_Branch_001.addOutputs([_SetProperty_002]);
_Branch_001.addOutputs([new armory.logicnode.NullNode(this)]);
_IsTrue_002.addOutputs([_Branch_001]);
_KeyboardState.addOutputs([_IsTrue_001, _IsTrue_002]);
_IsTrue_001.addInput(_KeyboardState, 0);
_IsTrue_001.addOutputs([_Branch]);
_Branch.addInput(_IsTrue_001, 0);
_Branch.addInput(_Compare_001, 0);
_Branch.addOutputs([_SetProperty_001]);
_Branch.addOutputs([new armory.logicnode.NullNode(this)]);
_SetProperty_001.addInput(_Branch, 0);
_SetProperty_001.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
_SetProperty_001.addInput(new armory.logicnode.StringNode(this, "spawn_nb"), 0);
_SetProperty_001.addInput(_Math, 0);
_SetProperty_001.addOutputs([_Merge]);
_Merge.addInput(_SetProperty_001, 0);
_Merge.addInput(_SetProperty_002, 0);
_Merge.addOutputs([_SendEvent_001]);
_SendEvent_001.addInput(_Merge, 0);
_SendEvent_001.addInput(new armory.logicnode.StringNode(this, "spawn"), 0);
_SendEvent_001.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
_SendEvent_001.addOutputs([new armory.logicnode.NullNode(this)]);
}
public function go_spawn(arg0:Dynamic, arg1:Dynamic) {
var functionNode = this.functionNodes["_Function_001"];
functionNode.args = [];
functionNode.args.push(arg0);
functionNode.args.push(arg1);
functionNode.run(0);
return this.functionOutputNodes["_FunctionOutput_001"].result;
}
public function set_spawn_nb(arg0:Dynamic, arg1:Dynamic) {
var functionNode = this.functionNodes["_Function"];
functionNode.args = [];
functionNode.args.push(arg0);
functionNode.args.push(arg1);
functionNode.run(0);
return this.functionOutputNodes["_FunctionOutput"].result;
}
}