Overview

The client-side portion of Utility Objectify is responsible for managing the behavior, lifecycle, and communication of object instances rendered on the player's machine.

It handles:

  • Creating and destroying local script instances tied to entities

  • Managing plugins and lifecycle hooks

  • Handling remote procedure calls (RPC) from server to client

This section provides a high-level overview of what happens on the client and how to work with it.


🧠 Core Responsibilities

βœ… 1. Object Instantiation

When an entity is rendered (OnSpawn), the library:

❌ When an entity is unrendered (OnDestroy):

  • All bound script instances are destroyed

  • The lifecycle method OnDestroy is called

  • Memory and state tracking is cleared


πŸ”§ Script Registration

🧱 Main script

🧩 Plugin System

πŸ”ŒPlugin script


πŸ“‘ RPC Client β†’ Server

🌐 Entity-Based RPC (via self.server or self.client)

🧩 Global RPC (via Server.<method> or Client.<method>)


πŸ”„ State Change Handling

@state(key, value?)

πŸ“£ Event Handling

@event("eventName", ignoreRendering?)


πŸ“¦ Object Registry: Entities

Entities Singleton


πŸ›  Utility Functions

Framework

Object Management

Last updated