4 protected static const string PORT_COVER_LOCK =
"CoverLock";
7 protected static const string PORT_POS =
"Pos";
8 protected static const string PORT_STANCE =
"Stance";
9 protected static const string PORT_STANCE_HIDE =
"StanceHide";
12 override ENodeResult EOnTaskSimulate(AIAgent owner,
float dt)
15 GetVariableIn(PORT_COVER_LOCK, coverLock);
16 if (!coverLock || !coverLock.IsValid())
17 return ENodeResult.FAIL;
19 float coverHeight = coverLock.m_vCoverTallestPos[1] - coverLock.m_vCoverPos[1];
22 CalculateCoverStance(coverHeight, stance, stanceHide);
24 SetVariableOut(PORT_POS, coverLock.m_vCoverPos);
26 SetVariableOut(PORT_STANCE_HIDE, stanceHide);
28 return ENodeResult.SUCCESS;
47 protected static ref TStringArray s_aVarsOut = {
52 override TStringArray GetVariablesOut() {
return s_aVarsOut; }
54 protected static ref TStringArray s_aVarsIn = {
57 override TStringArray GetVariablesIn() {
return s_aVarsIn; }
59 override bool VisibleInPalette() {
return true; }