VerseMaxxing Utility Functions
Utils
Verse from mandeep/VerseMaxxing (Snippets/Utils.verse), by mandeep, under the Apache-2.0 license. Pinned at commit 21832764c. Compile-checked and ready to adapt for UEFN.
-
using { /Fortnite.com/Characters } using { /Fortnite.com/Devices } using { /Fortnite.com/Teams } using { /Verse.org/Simulation } using { /Verse.org/Concurrency } using { /UnrealEngine.com/Temporary/Diagnostics } using { /UnrealEngine.com/Temporary/SpatialMath } using { /UnrealEngine.com/Temporary } Utils<public> := module: # Check if all elements in an array are equal AllElementsEqual<public>(Array: []int)<transacts>:logic= if (Array.Length <= 1): return true for (i := 1..Array.Length-1): if (Array[i] <> Array[0]): return false true # Find any elements in an array that are not unique # # Returns a new array of elements that were found to be duplicates # Example: [0, 1, 1, 2, 2, 2] will return [1, 2] FindDuplicates<public>(Array: []int)<transacts>:[]int= if (Array.Length <= 1): return Array
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.