Summary
The directives for using /Fortnite.com/Items/Lightsaber/StarWars and using { /Fortnite.com/Items/ForcePower/StarWars } both produce errors when building verse code. They also appear as red squigglies in the text editor.
C:/Users/myusername/Documents/FortProj/MyStarWarsProj/Content/lightsaber_device.verse(6,9, 6,48) : Script error 3587: The identifier 'Lightsaber' in /Fortnite.com/Items does not refer to a logical scope. Possible segments are StarWars, Acorn_Creative_V1_Common, ActivePowercell_Creative_V1_Epic, AdhesiveResin_Creative_V1_Uncommon, AirStrike_BR_CH1S9_Legendary, AlienNanites_BR_CH2S7_Common, AmmoArrows_BR_CH2S6_Common, [...] Wood_BR_PreSeason_Common, ZeroPointFish_BR_CH2S5_Rare, ZeroPointPretzel_BR_CH2S8_Uncommon
The code used is taken directly from STAR WARS™ Lightsabers and Force Powers in Fortnite | Fortnite Documentation | Epic Developer Community.
Please select what you are reporting on:
Unreal Editor for Fortnite
What Type of Bug are you experiencing?
Verse
Steps to Reproduce
Copy the code from STAR WARS™ Lightsabers and Force Powers in Fortnite | Fortnite Documentation | Epic Developer Community
and paste into your vscode.
Expected Result
Expected code to build. Expected using /Fortnite.com/Items/Lightsaber/StarWars and using { /Fortnite.com/Items/ForcePower/StarWars } to import.
Observed Result
using /Fortnite.com/Items/Lightsaber/StarWars and using { /Fortnite.com/Items/ForcePower/StarWars } did not import and caused errors when building verse code.
Platform(s)
Windows
