static int GetStealPosition(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 1); Player arg0 = (Player)LuaScriptMgr.GetNetObject(L, 1, typeof(Player)); IM.Vector3 o = PlayerState_Steal.GetStealPosition(arg0); LuaScriptMgr.PushValue(L, o); return(1); }
public override void OnEnter(AIState lastState) { base.OnEnter(lastState); if (m_ball.m_owner == null) { m_moveTarget = m_player.position; } else { m_moveTarget = PlayerState_Steal.GetStealPosition(m_ball.m_owner); } castSkill = false; if (m_player.m_inputDispatcher != null) { m_player.m_inputDispatcher.m_enable = false; } }