Used to customize the properties of NPCs spawned by this device. Changing properties will only affect newly spawned wildlife creatures.
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 |
|---|---|---|
CanRide |
?logic |
If true, agents can ride the wildlife creature. |
CanTame |
?logic |
If true and the wildlife creature supports being tamed, agents can tame the NPC. |
Damage |
??float |
If a value is given, the |
DamagedEvent |
listenable(payload) |
Signaled when wildlife is damaged.
|
DamageToEnvironment |
??float |
If a value is given, the |
DamageToPlayer |
??float |
If a value is given, the |
DismountedEvent |
listenable(payload) |
Signaled when an |
EliminatedEvent |
listenable(payload) |
Signaled when wildlife is eliminated.
|
EliminatingEvent |
listenable(payload) |
Signaled when a wildlife eliminates an agent.
|
EnergyConsumptionAmount |
?int |
The amount of riding energy that is consumed when the |
EnergyRestorationAmount |
?int |
The amount of riding energy that is restored when the |
ForceSpawnedEvent |
listenable(payload) |
Signaled when wildlife is force-spawned and causes the oldest wildlife to be eliminated.
Sends the |
InitialEnergy |
?int |
The amount of riding energy the wildlife creature spawns with. This value is clamped between 0 and 100. |
Invincible |
?logic |
Whether the NPC can receive damage. |
MaxEnergy |
?int |
The maximum riding energy the wildlife creature spawns with. This value is clamped between 0 and 100. |
MaxHealth |
??float |
If a value is given, the |
PreventDismount |
?logic |
If true, agents cannot manually use the interact action to dismount from the wildlife creature. |
RiddenEvent |
listenable(payload) |
Signaled when an |
SomethingIsEatenEvent |
listenable(payload) |
Signaled when wildlife eats a pickup such as a Shroom or Meat. Sends the wildlife that ate something. |
SpawnedEvent |
listenable(payload) |
Signaled when this device spawns wildlife.
Sends the |
SpeedMultiplier |
?float |
If a value is given, the |
TamedEvent |
listenable(payload) |
Signaled when wildlife is tamed.
|
TamedFollowDistance |
??float |
Distance in meters from the player who tamed it that the wildlife creature will try to stay within.
If a value is given, the |
UntamedEvent |
listenable(payload) |
Signaled when wildlife is untamed.
|
WanderRange |
??float |
Distance in meters from its spawn position from which the wildlife creature will peacefully roam.
If a value is given, the |
Functions
| Function Name | Description |
|---|---|
ConsumeEnergy |
Consumes energy from wildlife belonging to |
ConsumeEnergyForAll |
Consumes energy from wildlife by Energy Consume Amount. |
Despawn |
Despawns wildlife. |
DestroySpawner |
Destroys this device, marking |
Disable |
Disables this device. |
Dismount |
Dismounts |
DismountAll |
Dismounts all |
Enable |
Enables this device. |
GetAgents |
Get all agents created by this device. |
GetSpawnLimit |
Returns the spawn limit of the device. |
GetTransform |
Returns the transform of the |
MoveTo |
Moves the |
MoveTo |
Moves the |
Reset |
Resets the count on the Total Spawn Count option. |
RestoreEnergy |
Restores energy to wildlife belonging to |
RestoreEnergyForAll |
Restores energy to wildlife by Energy Restore Amount. |
Ride |
Teleports |
Spawn |
Spawns wildlife from this device. If spawn count is exceeded the oldest wildlife will be eliminated. |
SpawnAt |
Spawn a creature at the given position. When Rotation is not provided, it will default to the Device |
Tame |
Tames wildlife, making them AI partners of |
TeleportTo |
Teleports the |
TeleportTo |
Teleports the |
Untame |
Untames any tamed wildlife that belong to |
UntameAll |
Untames all wildlife. |