# SpyStationScript.ver
# A simple script that applies a disguise when a player interacts with the device.
using { /Fortnite.com/Devices }
using { /Verse.org/Sim }
# This is our main Script class. It attaches to the Disguise device.
# Think of this as the "Brain" of the Spy Station.
spy_station := class(VerseSpeaker):
# This is a VARIABLE.
# It's like a persistent memory slot in your backpack.
# We'll use it to store the "last known player" if we wanted to,
# but for now, we just use it to keep the script tidy.
last_interaction_time := 0.0
# This is an EVENT.
# It's like a tripwire. When the device is interacted with,
# this function automatically runs.
on_interact(event: DeviceInteractedEvent) -> unit:
# 'event' contains info about who triggered it.
# We need to find out who the player is.
player := event.GetInstigator()
# Check if the instigator is actually a player.
# (Prevents bots or projectiles from triggering the disguise).
if (player != None && player.IsPlayer()):
# Here is the MAGIC API call.
# We are telling the game engine:
# "Apply the Disguise defined in this device to this player."
Verse Libraryverse
01 Standalone
Applies disguises to players interacting with specific devices. Useful for spy stations or identity swaps.
verse-library/using-disguise-items-in-fortnite-creative/01-standalone.verse
Sign in free to read the full source 🌴
This Verse Library file is members-only. Create a free account to view the complete source and download the .verse file.