Component variable detected as valid inside of function but not valid inside of interface event
Hello, so im running an Interface Event in my Actor Blueprint, that detects if a Component Variable "ChosenMod" is valid, and calls either RollNewMod if it is, and GiveRandomMod if it isnt.
The first time i call the Interface Event, it runs as intended and calls GiveRandomMod, and inside of GiveRandomMod i set ChosenMod equal to the Mod that was added.
Then the second time i call the Interface Event, for some reason, it still calls GiveRandomMod, but inside of GiveRandomMod i check if ChosenMod is valid, and if it is i print a Error.
Every single time after the first time i use the Interface Event, Chosen Mod is detected as NotValid inside of the Interface Event, but when it calls the GiveRandomMod function it detects it as it should (Being Valid).
Is there any reason that the Variable would be valid inside of the function, but not valid inside of the Interface Event that calls the function?
Note: When i call GiveRandomMod, ChosenMod's Validity is the very first check and nothing is being set to it.
Soooooo, turns out i wasnt actually calling my interface function but the GiveRandomMod function itself >.<
User mistake, carry on, nothing to see here....
answered Aug 21 '15 at 03:13 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here