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:
parent
b945343326
commit
34fbbae71a
1 changed files with 7 additions and 0 deletions
|
@ -1735,6 +1735,12 @@ luaFunc(shakeCamera)
|
|||
luaReturnNil();
|
||||
}
|
||||
|
||||
luaFunc(rumble)
|
||||
{
|
||||
dsq->rumble(lua_tonumber(L, 1), lua_tonumber(L, 2), lua_tonumber(L, 3));
|
||||
luaReturnNil();
|
||||
}
|
||||
|
||||
luaFunc(changeForm)
|
||||
{
|
||||
dsq->game->avatar->changeForm((FormType)lua_tointeger(L, 1));
|
||||
|
@ -8108,6 +8114,7 @@ static const struct {
|
|||
luaRegister(isIgnoreAction),
|
||||
luaRegister(sendAction),
|
||||
|
||||
luaRegister(rumble),
|
||||
luaRegister(shakeCamera),
|
||||
luaRegister(upgradeHealth),
|
||||
|
||||
|
|
Loading…
Reference in a new issue