static int GenPath(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 3); Vector3 arg0 = LuaScriptMgr.GetVector3(L, 1); Vector3 arg1 = LuaScriptMgr.GetVector3(L, 2); int arg2 = (int)LuaScriptMgr.GetNumber(L, 3); List <Vector3> o = UtilCommon.GenPath(arg0, arg1, arg2); LuaScriptMgr.PushObject(L, o); return(1); }