Verse API reference page for the fishing_zone_device class
Used to add fishing mechanics to experiences, such as:
- Fishing competitions between players.
- Collecting fish as a resource.
- Fishing minigames with their own rewards.
Verse using statement |
using { /Fortnite.com/Devices } |
Inheritance Hierarchy
This class is derived from the following hierarchy, starting with creative_object:
| Name | Description |
|---|---|
creative_object |
Base class for creative devices and props. |
creative_device_base |
Base class for creative_device. |
Members
This class has both data members and functions.
Data
| Data Member Name | Type | Description |
|---|---|---|
CaughtEvent |
listenable(payload) |
Signaled when an agent catches a fish. Sends the agent that caught the fish. |
EmptyEvent |
listenable(payload) |
Signaled when all items have been caught and removed. Sends the agent that caught the last fish. |
Functions
| Function Name | Description |
|---|---|
Disable |
Disables this device. |
Enable |
Enables this device. |
GetTransform |
Returns the transform of the creative_object with units in cm. You must check creative_object.IsValid before calling this if there is a possibility the object has been disposed or destroyed by gameplay. Otherwise a runtime error will result. |
MoveTo |
Moves the creative_object to the specified Position and Rotation over the specified time, in seconds. If an animation is currently playing on the creative_object it will be stopped and put into the AnimationNotSet state. |
MoveTo |
Moves the creative_object to the specified Transform over the specified time, in seconds. If an animation is currently playing on the creative_object it will be stopped and put into the AnimationNotSet state. |
Reset |
Resets the number of available uses for this device back to Uses Allowed. |
Restock |
Returns all caught and removed items to the inventory. This only works when Pool Type is set to Device Inventory. |
TeleportTo |
Teleports the creative_object to the specified Position and Rotation. |
TeleportTo |
Teleports the creative_object to the specified location defined by Transform, also applies rotation and scale accordingly. |