using { /Fortnite.com/Devices }
using { /Verse.org/Sim }
# This is our main script entity.
# Think of it as the "Brain" of our island.
class RevealBrain extends GameScript():
# We need a reference to the Prop-O-Matic device.
# In your actual editor, you'd drag the device into this slot.
PropOMatic: PropOMaticDevice = PropOMaticDevice
# This is the main entry point. It runs when the game starts.
Run(): void =
# For this demo, let's say a button press triggers this.
# In a real build, you'd bind this to a UI button or trigger.
# Here, we'll just call our reveal function directly.
RevealAllHidingProps()
# FUNCTION: RevealAllHidingProps
# This function checks EVERY player on the island.
# It's like a security camera scanning the room.
RevealAllHidingProps(): void =
# Get all agents (players) currently in the game.
# This is the list of everyone alive and in the match.
all_agents := GetAgents()
# LOOP: Go through each player in the list.
# Think of this like checking every locker in the school.
for agent : all_agents do:
# CHECK: Is this player currently a prop?
Verse Library
verse
01 Fragment
Scans all players to detect those hiding as props and reveals them using a prop detection manager device.
verse-library/pingplayerprop/01-fragment.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.