Why does casting from Game Mode to my bot's AI blueprint always fail?
I am trying to set up a respawn system. In the game mode blueprint I connected Event Begin Play to a cast to my AI but it always fails. Why?
asked Apr 06 '15 at 03:14 AM in Blueprint Scripting
Casting is sort of converting some data type to another, this means you have to cast something TO something. From your description it seems you have a cast node with just the exec pin plugged into EventBeginPlay which will not do anything. If you are trying to spawn an AI pawn then you can use a SpawnActorFromClass or SpawnAIFromClass. SpawnActor is just an actor that will need to have an AIController assigned to it while SpawnAI will spawn an actor and create a new AIController and assign it.
answered Apr 06 '15 at 03:05 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here