1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-29 16:06:44 +00:00

[Server] SetObjectSound

This commit is contained in:
uramer 2020-03-14 19:17:00 +01:00
parent 43e7df6df8
commit 09ea1ab585
2 changed files with 10 additions and 0 deletions

View file

@ -484,6 +484,13 @@ void ObjectFunctions::SetObjectRotation(double x, double y, double z) noexcept
tempObject.position.rot[2] = z; tempObject.position.rot[2] = z;
} }
void ObjectFunctions::SetObjectSound(const char* soundId, double volume, double pitch) noexcept
{
tempObject.soundId = soundId;
tempObject.volume = volume;
tempObject.pitch = pitch;
}
void ObjectFunctions::SetObjectSummonState(bool summonState) noexcept void ObjectFunctions::SetObjectSummonState(bool summonState) noexcept
{ {
tempObject.isSummon = summonState; tempObject.isSummon = summonState;

View file

@ -102,6 +102,7 @@
{"SetObjectDroppedByPlayerState", ObjectFunctions::SetObjectDroppedByPlayerState},\ {"SetObjectDroppedByPlayerState", ObjectFunctions::SetObjectDroppedByPlayerState},\
{"SetObjectPosition", ObjectFunctions::SetObjectPosition},\ {"SetObjectPosition", ObjectFunctions::SetObjectPosition},\
{"SetObjectRotation", ObjectFunctions::SetObjectRotation},\ {"SetObjectRotation", ObjectFunctions::SetObjectRotation},\
{"SetObjectSound", ObjectFunctions::SetObjectSound},\
\ \
{"SetObjectSummonState", ObjectFunctions::SetObjectSummonState},\ {"SetObjectSummonState", ObjectFunctions::SetObjectSummonState},\
{"SetObjectSummonEffectId", ObjectFunctions::SetObjectSummonEffectId},\ {"SetObjectSummonEffectId", ObjectFunctions::SetObjectSummonEffectId},\
@ -934,6 +935,8 @@ public:
*/ */
static void SetObjectRotation(double x, double y, double z) noexcept; static void SetObjectRotation(double x, double y, double z) noexcept;
static void SetObjectSound(const char* soundId, double volume, double pitch) noexcept;
/** /**
* \brief Set the summon state of the temporary object stored on the server. * \brief Set the summon state of the temporary object stored on the server.
* *