Hi all,
I’m having trouble figuring out what is wrong with this section of my script. I have it set up so that there are two random integer ranges from 1-6 (like dice) added up. If the total is >= 7 then the component should be destroyed.
For debugging purposes I have it printing the end result integer.
Now, sometimes the component gets destroyed, but this event doesn’t seem to correlate with the >= boolean i have put into place.
Sometimes it destroys when it prints 4, sometimes at 6, sometimes it doesn’t destroy at 9, sometimes it does destroy at 9, and so on. I really can’t figure out what’s going on. It’s approximately 50/50 whether it gets destroyed or not, but it doesn’t reliably correlate to my random integer ranges’ outputs.
Appreciate the help