Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: FunctionTables.h
- ===================================================================
- --- FunctionTables.h (revision 4496)
- +++ FunctionTables.h (working copy)
- @@ -536,6 +536,9 @@
- { "CastSpellAoE", &LuaUnit::CastSpellAoF },
- { "SetFlag", &LuaUnit::SetFlag },
- { "SetSelectedGO", &LuaUnit::SetSelectedGO },
- + { "MoveJump", &LuaUnit::MoveJump },
- + { "MoveKnockback", &LuaUnit::MoveKnockback },
- + { "MoveCharge", &LuaUnit::MoveCharge },
- { NULL, NULL },
- };
- Index: UnitFunctions.h
- ===================================================================
- --- UnitFunctions.h (revision 4496)
- +++ UnitFunctions.h (working copy)
- @@ -5991,5 +5991,37 @@
- lua_pushnil(L);
- return 1;
- }
- +
- + static int MoveJump(lua_State* L, Unit* ptr)
- + {
- + TEST_UNITPLAYER();
- + float x = CHECK_FLOAT(L,1);
- + float y = CHECK_FLOAT(L,2);
- + float z = CHECK_FLOAT(L,3);
- + ptr->GetAIInterface()->MoveJump(x,y,z);
- + return 1;
- + }
- +
- + static int MoveKnockback(lua_State* L, Unit* ptr)
- + {
- + TEST_UNITPLAYER();
- + float x = CHECK_FLOAT(L,1);
- + float y = CHECK_FLOAT(L,2);
- + float z = CHECK_FLOAT(L,3);
- + float h = CHECK_FLOAT(L,4);
- + float v = CHECK_FLOAT(L,5);
- + ptr->GetAIInterface()->MoveKnockback(x,y,z,h,v);
- + return 1;
- + }
- +
- + static int MoveCharge(lua_State* L, Unit* ptr)
- + {
- + TEST_UNITPLAYER();
- + float x = CHECK_FLOAT(L,1);
- + float y = CHECK_FLOAT(L,2);
- + float z = CHECK_FLOAT(L,3);
- + ptr->GetAIInterface()->MoveCharge(x,y,z);
- + return 1;
- + }
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment