[Server] SetObjectSound

pull/558/head
uramer 5 years ago
parent 43e7df6df8
commit 09ea1ab585

@ -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…
Cancel
Save