mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
1.6 KiB
1.6 KiB
⏪ Lua Functions
< prev | 1 | 2 | 3 | 4 | 5 | 6 | 7]
functions from sync_object.h
sync_object_get_object
Description
Retrieves an object from a sync ID
Lua Example
local ObjectValue = sync_object_get_object(syncId)
Parameters
| Field | Type |
|---|---|
| syncId | integer |
Returns
C Prototype
struct Object* sync_object_get_object(u32 syncId);
sync_object_is_initialized
Description
Checks if a sync object is initialized using a syncId
Lua Example
local booleanValue = sync_object_is_initialized(syncId)
Parameters
| Field | Type |
|---|---|
| syncId | integer |
Returns
boolean
C Prototype
bool sync_object_is_initialized(u32 syncId);
sync_object_is_owned_locally
Description
Checks if a sync object is owned locally using a syncId
Lua Example
local booleanValue = sync_object_is_owned_locally(syncId)
Parameters
| Field | Type |
|---|---|
| syncId | integer |
Returns
boolean
C Prototype
bool sync_object_is_owned_locally(u32 syncId);