Again, how you set up the reference completely depends on how your overall system if going to be. There are so many ways to do it, however I can say for sure that your method is not the way to go about it, as you’d be getting EVERY weapon on the map and looping through them…
For testing purposes you can simply spawn a sword, grab the output, and use that to access the weapon data. Using this method you won’t actually need to cast to get the variables… However you will if you have a nonspecific actor reference, like a trace actor output.
(ignore double print)
