Skip to content

Commit

Permalink
Document NetworkAllowLocalEntityAttachment (#1027)
Browse files Browse the repository at this point in the history
* Document NetworkAllowLocalEntityAttachment

Changed to real name and added documentation

* Update NetworkAllowRemoteAttachmentModification.md

- Nitpicking, note improvements.
- Add missing underscore when referencing a native.
- More nitpicking, parameter related.

---------

Co-authored-by: ammonia-cfx <[email protected]>
  • Loading branch information
freedy69 and 4mmonium authored Feb 28, 2024
1 parent cbf6d1e commit d582185
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
15 changes: 0 additions & 15 deletions NETWORK/NetworkAllowLocalEntityAttachment.md

This file was deleted.

19 changes: 19 additions & 0 deletions NETWORK/NetworkAllowRemoteAttachmentModification.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
ns: NETWORK
aliases: ["0x267C78C60E806B9A", "_NETWORK_ALLOW_LOCAL_ENTITY_ATTACHMENT"]
---
## NETWORK_ALLOW_REMOTE_ATTACHMENT_MODIFICATION

```c
// 0x267C78C60E806B9A 0xBB2D33D3
void NETWORK_ALLOW_REMOTE_ATTACHMENT_MODIFICATION(Entity entity, BOOL toggle);
```
Allows scripts to use attachment commands on entities (eg. [`ATTACH_ENTITY_TO_ENTITY`](#_0x6B9BBD38AB0796DF)) that are not controlled by the client.
**Note:** This is only local and does not affect entities on other machines. This is used by the ferris wheel script to sync players on carts.
## Parameters
* **entity**: Entity handle to allow remote attachment for.
* **toggle**: true/false.

0 comments on commit d582185

Please sign in to comment.