I’m working on a VR project and following a tutorial that uses Get AIController function but with execution pins (blue). When I add that node its only coming up as a pure (green) function. Is there any way to get the execution pins to appear?
Right click on the node and ask it to convert to impure cast. Should do the trick.
Also, are you sure it isn’t a “cast to” controller node, not a simple “get”. The “Get” node is always green and a pure function, the “cast to” is blue-ish and has execution pins, but if you right click on it you have the option to convert to “pure cast” and it will remove the execution pins, although the node remains “blue”.
Sorry. When I right click on it there isn’t an option to “pure cast”.
See below screenshot from tutorial.
Hmm, I checked in my project and I also only get the pure cast. This could be an older version where maybe the cast wasn’t pure and now they have modified the engine to only give a pure cast. Either way, you don’t “need” the execution pins for this to still work. Is there any particular reason you are determined to have the execution pins?
I’m following a tutorial and it has the following in order to make a death animation work. I’m a novice so I’m still learning a lot. Here is the screen shot of the tutorial.
I get error when I try using the just controlled Actor pins.
Yea in that case don’t worry about it. The execution pins are actually unnecessary and likely why they got removed from this function. Usually you get execution pins on impure casts so you can do error handling if the cast fails ie. they normally have a “true” and “false” pin. Simply having an execution pin here really does nothing. in fact, it may fail without giving an error. So you are perfectly fine using the pure cast to AI controller and continuing on with the execution pins. Just link the previous execution pin to the “set value as bool” and skip the AI controller part. Everything will work fun, trust me
What error? Show me your set up not the tutorial.The tutorial is clearly fine, your code is the issue so I need to see that.
Yes. This worked perfectly. Thank you so much for your help!
Awesome, please mark the question resolved.
I’m actually doing the same thing right now. Nebula Games, so If I were to use the GET AIController, I don’t have to link it with the execute?