diff --git a/scripts/client/object.js b/scripts/client/object.js new file mode 100644 index 00000000..5614b84a --- /dev/null +++ b/scripts/client/object.js @@ -0,0 +1,39 @@ +// =========================================================================== +// Asshat Gaming Roleplay +// https://github.com/VortrexFTW/agrp_main +// (c) 2022 Asshat Gaming +// =========================================================================== +// FILE: object.js +// DESC: Provides object functions and processing +// TYPE: Client (JavaScript) +// =========================================================================== + +let movingObject = null; + +// =========================================================================== + +function startMovingObject(object) { + +} + +// =========================================================================== + +function stopMovingObject(object, save = true) { + if (save) { + sendNetworkEventToServer("agrp.objectSave", object.id, object.position, object.rotation); + } +} + +// =========================================================================== + +function isMovingObject() { + return movingObject != null; +} + +// =========================================================================== + +function getMovingObject() { + return movingObject; +} + +// ===========================================================================