diff --git a/Source/Contents/Actors/GameObject.cpp b/Source/Contents/Actors/GameObject.cpp index 8717061..31f4f93 100644 --- a/Source/Contents/Actors/GameObject.cpp +++ b/Source/Contents/Actors/GameObject.cpp @@ -91,6 +91,15 @@ void CRenderObject::SetActionSpeed(float speed) { } // OFFSET: 0x00CB3FF0 +// FUNCTION: fn_21109 +void CRenderObject::SendValueMessage(int value, CGameObject* target) { + if (target) { + const std::int64_t wide = value; + target->SendObjectMessage( + nullptr, 29, 0, static_cast(wide), static_cast(wide >> 32), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + ); + } +} // OFFSET: 0x00CB4070 diff --git a/Source/Contents/Actors/RenderObject.h b/Source/Contents/Actors/RenderObject.h index 1fb8c95..f9e18a5 100644 --- a/Source/Contents/Actors/RenderObject.h +++ b/Source/Contents/Actors/RenderObject.h @@ -26,6 +26,7 @@ public: void SetActionSpeed(float speed); void DrawSprite(int argument, bool seasonal, float offset); void DrawShadow(int argument, float scale); + void SendValueMessage(int value, CGameObject* target); void SetActionName(ResourceMgr& resources, const char* name); void SetSpriteName(ResourceMgr& resources, const char* name); void SetColor(int alpha, int red, int green, int blue);