GiveControl function
Gives control of this device to the capturing agent's team.
Verse using statement |
using { /Fortnite.com/Devices } |
GiveControl<public>(Agent:agent)<reads><writes><allocates><no_rollback>:void
Parameters
GiveControl takes the following parameters:
| Name | Type | Description |
|---|---|---|
Agent |
agent |
Attributes and Effects
The following attributes and effects determine how GiveControl behaves and how you can use it in your programs. For the complete list of attribute and effect specifiers, see the Specifiers Page.
| Attribute | Meaning |
|---|---|
public |
The identifier is universally accessible. You can use this on modules, classes, interfaces, structs, enums, methods, and data. |
| Effect | Meaning |
|---|---|
reads |
This effect indicates that the same inputs may not always produce the same output. The behavior depends on factors external to the specified inputs, such as memory or the containing module version. |
writes |
This effect indicates that it may change values in memory. |
allocates |
This effect indicates that it may instantiate an object in memory. Allocating unique classes requires the allocates specifier. |
no_rollback |
This is the default effect when no exclusive effect is specified. The no_rollback effect indicates that any actions performed by the function cannot be undone and so the function cannot be used in a failure context. This effect cannot be manually specified. |