Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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?

alt text

alt text

Note: When i call GiveRandomMod, ChosenMod's Validity is the very first check and nothing is being set to it.

Product Version: UE 4.8
more ▼

asked Aug 21 '15 at 08:44 AM in Bug Reports

avatar image

100 14 18 25

avatar image Rudy Q ♦♦ STAFF Aug 21 '15 at 02:06 PM

Hello Diddykonga,

I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

  1. Can you reproduce this issue in a clean project?

  2. If so, could you provide a detailed set of steps to reproduce this issue on our end?

  3. If you use the "Refresh all nodes" feature for the blueprints does this issue still occur (open blueprint > File > Refresh all nodes)

  4. Could try adding a delay before the check to make sure that the events are happening in the correct order?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Soooooo, turns out i wasnt actually calling my interface function but the GiveRandomMod function itself >.<

User mistake, carry on, nothing to see here....

more ▼

answered Aug 21 '15 at 03:13 PM

avatar image

100 14 18 25

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question