mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-31 02:06:44 +00:00
[Server] SetObjectSound
This commit is contained in:
parent
43e7df6df8
commit
09ea1ab585
2 changed files with 10 additions and 0 deletions
|
@ -484,6 +484,13 @@ void ObjectFunctions::SetObjectRotation(double x, double y, double z) noexcept
|
|||
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
|
||||
{
|
||||
tempObject.isSummon = summonState;
|
||||
|
|
|
@ -102,6 +102,7 @@
|
|||
{"SetObjectDroppedByPlayerState", ObjectFunctions::SetObjectDroppedByPlayerState},\
|
||||
{"SetObjectPosition", ObjectFunctions::SetObjectPosition},\
|
||||
{"SetObjectRotation", ObjectFunctions::SetObjectRotation},\
|
||||
{"SetObjectSound", ObjectFunctions::SetObjectSound},\
|
||||
\
|
||||
{"SetObjectSummonState", ObjectFunctions::SetObjectSummonState},\
|
||||
{"SetObjectSummonEffectId", ObjectFunctions::SetObjectSummonEffectId},\
|
||||
|
@ -934,6 +935,8 @@ public:
|
|||
*/
|
||||
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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue