23 string orderDebugText;
24 if (!node.GetVariableIn(node.ORDER_DEBUG_TEXT, orderDebugText))
25 orderDebugText = node.m_string;
27 SetReceiver(node.m_Receiver);
55 node.SetVariableOut(node.SCRIPTED_ORDER,
true);
56 node.SetVariableOut(node.ORDER_VALUE,
m_eStance);
63 super.SetOrderParameters(node);
64 if(!node.GetVariableIn(node.ORDER_VALUE,
m_eStance))
80 int iWeaponRaised = m_bWeaponRaised;
82 node.SetVariableOut(node.SCRIPTED_ORDER,
true);
83 node.SetVariableOut(node.ORDER_VALUE, iWeaponRaised);
85 node.m_sDebugString =
"Weapon raised "+ m_bWeaponRaised.ToString() +
" by " + node.m_Order.GetText();
90 super.SetOrderParameters(node);
91 if(!node.GetVariableIn(node.ORDER_VALUE, m_bWeaponRaised))
92 m_bWeaponRaised = node.m_integer;
108 node.SetVariableOut(node.SCRIPTED_ORDER,
true);
116 super.SetOrderParameters(node);
132 node.SetVariableOut(node.SCRIPTED_ORDER,
true);
134 node.m_sDebugString =
"Default set ";
150 node.SetVariableOut(node.SCRIPTED_ORDER,
true);
153 node.m_sDebugString =
"Weapon type "+
typename.EnumToString(
EWeaponType,
m_eWeaponType) +
" by " + node.m_Order.GetText();
158 super.SetOrderParameters(node);
166 EUnitAIState m_eAIState;
176 node.SetVariableOut(node.SCRIPTED_ORDER,
true);
177 node.SetVariableOut(node.ORDER_VALUE, m_eAIState);
179 node.m_sDebugString =
"AI State "+
typename.EnumToString(EUnitAIState, m_eAIState) +
" by " + node.m_Order.GetText();
184 super.SetOrderParameters(node);
185 if(!node.GetVariableIn(node.ORDER_VALUE, m_eAIState))
186 m_eAIState = node.m_integer;
192 EUnitState m_eUnitState;
194 void SCR_AIOrder_State()
202 node.SetVariableOut(node.SCRIPTED_ORDER,
true);
205 node.m_sDebugString =
"State change "+
typename.EnumToString(EUnitState,
m_eUnitState) +
" by " + node.m_Order.GetText();
210 super.SetOrderParameters(node);
218 EAICombatType m_eCombatType;
228 node.SetVariableOut(node.SCRIPTED_ORDER,
true);
229 node.SetVariableOut(node.ORDER_VALUE, m_eCombatType);
231 node.m_sDebugString =
"Combat type "+
typename.EnumToString(EAICombatType, m_eCombatType) +
" by " + node.m_Order.GetText();
236 super.SetOrderParameters(node);
237 if(!node.GetVariableIn(node.ORDER_VALUE, m_eCombatType))
238 m_eCombatType = node.m_integer;