mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-29 21:45:32 +00:00
Play VFX_Soul_Trap on successful soul trap
This commit is contained in:
parent
f8f4d2dfdb
commit
253036abee
1 changed files with 6 additions and 0 deletions
|
@ -248,6 +248,12 @@ namespace MWMechanics
|
|||
|
||||
if (caster.getRefData().getHandle() == "player")
|
||||
MWBase::Environment::get().getWindowManager()->messageBox("#{sSoultrapSuccess}");
|
||||
|
||||
const ESM::Static* fx = MWBase::Environment::get().getWorld()->getStore().get<ESM::Static>()
|
||||
.search("VFX_Soul_Trap");
|
||||
if (fx)
|
||||
MWBase::Environment::get().getWorld()->spawnEffect("meshes\\" + fx->mModel,
|
||||
"", Ogre::Vector3(mCreature.getRefData().getPosition().pos));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue