Skip to content

Instantly share code, notes, and snippets.

@WahlbeckUEFN
WahlbeckUEFN / item_rotator.verse
Created March 31, 2023 16:23
How to rotate and move items in Verse Programming language and UEFN
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /UnrealEngine.com/Temporary/SpatialMath }
using { /Verse.org/Simulation/Tags }
# Tag system so we can find all objects we want to rotate
rotate_on := class(tag) {}
@WahlbeckUEFN
WahlbeckUEFN / bug_blaster.verse
Created April 13, 2023 14:05
The full code for the Bug Blaster UEFN YouTube Tutorial by Wahlbeck Warforge
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
game_manager := class(creative_device):
@editable var Enemies : []creative_prop = array{}
@editable var Granter : item_granter_device = item_granter_device{}
@editable var PropManipulator : prop_manipulator_device = prop_manipulator_device{}
@editable var EndDevice : end_game_device = end_game_device{}
@WahlbeckUEFN
WahlbeckUEFN / target_range.verse
Created April 18, 2023 20:51
Code for an aim training game in UEFN and Fortnite Creative 2.0
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /Verse.org/Random }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /UnrealEngine.com/Temporary/SpatialMath }
target_range := class(creative_device):
@editable var ScoreBillboard : billboard_device = billboard_device{}
@WahlbeckUEFN
WahlbeckUEFN / scary_game.verse
Created April 19, 2023 22:00
Code for the Wahlbeck Warforge Horror Game Tutorial
using { /Fortnite.com/Devices }
using {/Fortnite.com/Characters}
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /UnrealEngine.com/Temporary/SpatialMath }
# See https://dev.epicgames.com/documentation/en-us/uefn/create-your-own-device-in-verse for how to create a verse device.
# A Verse-authored creative device that can be placed in a level
scary_game := class(creative_device):
@WahlbeckUEFN
WahlbeckUEFN / lesson_07.verse
Created April 20, 2023 16:48
Lesson 7 in the UEFN Verse Course - Arrays and Dynamic Tiles
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /Verse.org/Random }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /UnrealEngine.com/Temporary/SpatialMath }
# See https://dev.epicgames.com/documentation/en-us/uefn/create-your-own-device-in-verse for how to create a verse device.
# A Verse-authored creative device that can be placed in a level
lesson_07 := class(creative_device):
@WahlbeckUEFN
WahlbeckUEFN / magic_killstreak.verse
Created April 25, 2023 20:28
Code to cast spells in UEFN, Fortnite Creative 2.0 and Verse programming language
using { /Fortnite.com/Devices }
using { /Fortnite.com/Game }
using { /Fortnite.com/Characters }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
rpg_player := class<concrete>():
@editable var VFXSpawner : vfx_spawner_device = vfx_spawner_device{}
@editable var DamageDevice : damage_volume_device = damage_volume_device{}
@WahlbeckUEFN
WahlbeckUEFN / shrinkinator.verse
Created May 4, 2023 21:10
Code in Verse to shrink and grow props
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /UnrealEngine.com/Temporary/SpatialMath }
shrinkies := class<concrete>():
@editable PropManip : prop_manipulator_device = prop_manipulator_device{}
@editable Prop : creative_prop = creative_prop{}
var ShrinkMode<private> : logic = false
@WahlbeckUEFN
WahlbeckUEFN / boss_fight.verse
Created May 10, 2023 00:16
Code for boss fight and health bar in UEFN and Verse
using { /Fortnite.com/Devices }
using { /Fortnite.com/Characters }
using { /Verse.org/Simulation }
using { /Verse.org/Random }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /UnrealEngine.com/Temporary/UI }
using { /Fortnite.com/UI }
using { /UnrealEngine.com/Temporary/SpatialMath}
using { /Verse.org/Colors }
@WahlbeckUEFN
WahlbeckUEFN / get_closest_player.verse
Created May 10, 2023 15:01
Get closest player to prop in UEFN and Verse
using { /Fortnite.com/Devices }
using { /Fortnite.com/Characters }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /UnrealEngine.com/Temporary/SpatialMath }
GetClosestPlayerToProp(AllPlayers: []fort_character, Prop : creative_prop): ?fort_character =
var ClosestPlayer : ?fort_character = false
var ClosestDistance: float = 1000000000.0 # initialize with a large number
for (Player : AllPlayers):
@WahlbeckUEFN
WahlbeckUEFN / lesson_08.verse
Created May 10, 2023 15:49
Working with classes in Verse from UEFN course on YouTube
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /UnrealEngine.com/Temporary/SpatialMath }
pawn := class():
var TotalHP<private> : int = 100
var CurrentHP<private> : int = 100