diff --git a/include/Server/Components/Objects/objects.hpp b/include/Server/Components/Objects/objects.hpp index 17bec89..314867f 100644 --- a/include/Server/Components/Objects/objects.hpp +++ b/include/Server/Components/Objects/objects.hpp @@ -215,10 +215,14 @@ struct IObject : public IBaseObject struct IPlayerObject : public IBaseObject { + /// Attach the object to another object (rotation is always synced) virtual void attachToObject(IPlayerObject& object, Vector3 offset, Vector3 rotation) = 0; /// Attach the object to a player virtual void attachToPlayer(IPlayer& player, Vector3 offset, Vector3 rotation) = 0; + + /// Attach the object to another object (optional sync) + virtual void attachToObject(IPlayerObject& object, Vector3 offset, Vector3 rotation, bool syncRotation) = 0; }; struct ObjectEventHandler;