Verse Start 03 Bonus Time Target in Fortnite
In this step, you will create a special target that awards extra time when a player hits it. The target pops up randomly when hitting positive scoring targets, and the odds that it will pop up increase until it appears.
Modify Your Island
- Select the Combo Target in the viewport.
- Press the Alt key, then left-click the axis widget, and drag a duplicate target to the front of your shooting gallery. This is the bonus time target.
- In the Details panel, set the TargetType to Dancing.
Write Verse Code
This page guides you step by step through the code changes, but if you want to check your work, review the Complete Code section for the final result.
-
Open the
shooting_range_manager_device.versefile. -
Add the following library to support random number generation.
using { /Verse.org/Random }using { /Verse.org/Random }
Copy full snippet(1 line long)
-
Add the following variables to store the target device reference and related properties. The time duration and reward variables are in seconds.
| | | | --- | --- | | | @editable | | | InitialTimerDuration:float = 30.0 | | | | | | @editable | | | MaxTimerDuration:float = 60.0 | | | | | | @editable | | | BonusTimeTarget:shooting_range_target_track_device = shooting_range_target_track_device{} | | | | | | @editable | | | BonusTimeTargetBaseChance:float = 0.05 | | | | | | @editable | | | BonusTimeReward:float = 10.0 | | | | | | var GoodHitsSinceLastBonus:int = 0 |
You're reading a preview
The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.
Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.