Verse API reference page for the TryApplyModByAgent function
Apply the mod at Index in the device's list to the vehicle that Agent is riding.
- The first index in the list is
0for Custom List Mod 1. - Triggers
ModAppliedEvent,ModApplyFailEvent, andNoModEventas appropriate, regardless ofSetOverrideModApplyEvent. - Fails if this device is disabled, Possible Mods is not set to
Custom List,IndexorAgentis invalid, orAgentis not riding a vehicle.
Verse using statement |
using { /Fortnite.com/Devices } |
TryApplyModByAgent<public>(Index:int, Agent:agent)<transacts><decides>:void
Parameters
TryApplyModByAgent takes the following parameters:
| Name | Type | Description |
|---|---|---|
Index |
int |
|
Agent |
agent |
Attributes, Specifiers, and Effects
Specifiers
The following specifiers determine how you can interact with TryApplyModByAgent in your programs. For the complete list of specifiers, see the Specifiers Page.
| Specifier | Meaning |
|---|---|
public |
The identifier is universally accessible. You can use this on modules, classes, interfaces, structs, enums, methods, and data. |
You're reading a preview
The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.
Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.