1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-12-26 06:35:51 +00:00

Add Lua function rumble() to script force feedback

This commit is contained in:
fgenesis 2013-07-20 04:03:15 +02:00
parent b945343326
commit 34fbbae71a

View file

@ -1735,6 +1735,12 @@ luaFunc(shakeCamera)
luaReturnNil(); luaReturnNil();
} }
luaFunc(rumble)
{
dsq->rumble(lua_tonumber(L, 1), lua_tonumber(L, 2), lua_tonumber(L, 3));
luaReturnNil();
}
luaFunc(changeForm) luaFunc(changeForm)
{ {
dsq->game->avatar->changeForm((FormType)lua_tointeger(L, 1)); dsq->game->avatar->changeForm((FormType)lua_tointeger(L, 1));
@ -8108,6 +8114,7 @@ static const struct {
luaRegister(isIgnoreAction), luaRegister(isIgnoreAction),
luaRegister(sendAction), luaRegister(sendAction),
luaRegister(rumble),
luaRegister(shakeCamera), luaRegister(shakeCamera),
luaRegister(upgradeHealth), luaRegister(upgradeHealth),