mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-02-27 16:44:00 +00:00
Set positional sound position early
This commit is contained in:
parent
0b4e6854f7
commit
a0c53a488f
1 changed files with 3 additions and 0 deletions
|
@ -3008,6 +3008,9 @@ luaFunc(entity_playSfx)
|
|||
sfx.maxdist = lua_tonumber(L, 7);
|
||||
sfx.relative = false;
|
||||
sfx.positional = true;
|
||||
Vector pos = e->position + e->offset;
|
||||
sfx.x = pos.x;
|
||||
sfx.y = pos.y;
|
||||
|
||||
h = core->sound->playSfx(sfx);
|
||||
if (fadeOut != 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue