Dang, my Array_Test script broke and it won’t even print anything On Begin, even before any of the rest of the script. Not sure what I did to break it!
I thought maybe it was because of some changes I made to a different script, so I commented out that whole other script, but my Array_Test script is still broken. Even though to me it looks exactly the same as the version of it that was working before. I’ll have to take a break and return to it later. Maybe I’ll just start another script from scratch, or even start another project from scratch.
Does any of this look wrong to anyone?
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /EpicGames.com/Temporary/Diagnostics }
log_Array_Test := class(log_channel){}
Array_Test := class(creative_device):
Logger:log = log{Channel:=log_Array_Test}
@editable MyArray1: []string = array{}
OnBegin<override>()<suspends>:void=
Print("Array_test device startedt")
Logger.Print("Array_Test device started")
for (Index := 0..MyArray1.Length-1):
if (Element := MyArray1[1]):
Logger.Print("{Element}")
@KyleDev did answer my question about Arrays though! I was able to get the script to work, before it broke for an unknown reason.