From afb5951aa4d69f40a0ef23da8f19970a65c22b57 Mon Sep 17 00:00:00 2001 From: Laura Date: Sun, 27 Oct 2024 20:50:54 +0100 Subject: [PATCH] update network natives --- NETWORK/NetworkDisableProximityMigration.md | 6 ++++-- NETWORK/NetworkRequestControlOfEntity.md | 4 +++- NETWORK/NetworkRequestControlOfNetworkId.md | 6 ++++-- NETWORK/SetNetworkIdCanMigrate.md | 11 ++++------- 4 files changed, 15 insertions(+), 12 deletions(-) diff --git a/NETWORK/NetworkDisableProximityMigration.md b/NETWORK/NetworkDisableProximityMigration.md index 3fe85bcbb..6f6c97d87 100644 --- a/NETWORK/NetworkDisableProximityMigration.md +++ b/NETWORK/NetworkDisableProximityMigration.md @@ -6,9 +6,11 @@ aliases: ["0x407091CF6037118E"] ```c // 0x407091CF6037118E 0x9F82917F -void NETWORK_DISABLE_PROXIMITY_MIGRATION(int netID); +void NETWORK_DISABLE_PROXIMITY_MIGRATION(int networkId); ``` +Prevents the entity dynamically migrating to nearby players, it can still migrate by other means. You need to call this every tick while you need it disabled. + ## Parameters -* **netID**: +* **networkId**: The network id of the entity. diff --git a/NETWORK/NetworkRequestControlOfEntity.md b/NETWORK/NetworkRequestControlOfEntity.md index 2a679eb88..fbcb3b534 100644 --- a/NETWORK/NetworkRequestControlOfEntity.md +++ b/NETWORK/NetworkRequestControlOfEntity.md @@ -8,8 +8,10 @@ ns: NETWORK BOOL NETWORK_REQUEST_CONTROL_OF_ENTITY(Entity entity); ``` +Request ownership of the entity with the specified entity index from the current owner. ## Parameters -* **entity**: +* **entity**: The entity handle. ## Return value +Returns true if the entity is already owned by us. \ No newline at end of file diff --git a/NETWORK/NetworkRequestControlOfNetworkId.md b/NETWORK/NetworkRequestControlOfNetworkId.md index caec58665..b81f9a9af 100644 --- a/NETWORK/NetworkRequestControlOfNetworkId.md +++ b/NETWORK/NetworkRequestControlOfNetworkId.md @@ -5,11 +5,13 @@ ns: NETWORK ```c // 0xA670B3662FAFFBD0 0x9262A60A -BOOL NETWORK_REQUEST_CONTROL_OF_NETWORK_ID(int netId); +BOOL NETWORK_REQUEST_CONTROL_OF_NETWORK_ID(int networkId); ``` +Request ownership of the object with the specified network ID from the current owner. ## Parameters -* **netId**: +* **networkId**: The network id of the entity. ## Return value +Returns true if the networkId is already owned by us. \ No newline at end of file diff --git a/NETWORK/SetNetworkIdCanMigrate.md b/NETWORK/SetNetworkIdCanMigrate.md index 6804281cf..a2a76fc9a 100644 --- a/NETWORK/SetNetworkIdCanMigrate.md +++ b/NETWORK/SetNetworkIdCanMigrate.md @@ -5,14 +5,11 @@ ns: NETWORK ```c // 0x299EEB23175895FC 0x47C8E5FF -void SET_NETWORK_ID_CAN_MIGRATE(int netId, BOOL toggle); +void SET_NETWORK_ID_CAN_MIGRATE(int networkId, BOOL canMigrate); ``` -``` -Whether or not another player is allowed to take control of the entity -``` +Sets the `GLOBALFLAG_PERSISTENTOWNER` global flag for the specified network id. Disallows proximity or other common ownership changes to this networkId. Ownership can only be altered via explicit means. ## Parameters -* **netId**: -* **toggle**: - +* **networkId**: The network id of the entity. +* **canMigrate**: Whether the network id can be migrated.