What’s in ‘set weapon material’?
I mean, where are you waiting for the material to be valid? ( maybe you can show the area of code that’s giving you ‘none’ )
If you know it’s going to be ok, you can use a delay with a loopback, waiting for it