# This is a Verse Script that handles target interactions
# It uses the 'damage_sensor_device' to detect hits and
# 'hud_message_device' to show score, since Verse has no
# bare 'billboard' or 'audio' type — we use real UEFN devices.
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
target_handler := class(creative_device):
# 'ObjectiveSensor' detects when a projectile hits the target zone.
# Wire this to an objective_device placed in the editor.
@editable
DamageSensor : objective_device = objective_device{}
# 'HitSound' plays audio feedback on impact.
# Wire this to an audio_player_device placed in the editor.
@editable
HitSound : audio_player_device = audio_player_device{}
# 'HitVFX' triggers a particle effect on impact.
# Wire this to a vfx_creator_device placed in the editor.
@editable
HitVFX : vfx_creator_device = vfx_creator_device{}
# 'ScoreDisplay' shows the current score to the player.
# Wire this to a hud_message_device placed in the editor.
# note: hud_message_device is the real device for on-screen text.
@editable
Verse Library
verse
01 Device
Detects target hits to award scores while triggering synchronized audio and visual feedback.
verse-library/design-tips/01-device.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.