Cast To Blueprint_C is not working

Nooo :smiley: not like that. You need something that you want to cast. For example, your “GetAllOverlappingActors” gives you an array of these objects. If you go through this array with the for loop, you look at every single actor. Now if you take the “Array Element”, you can cast it to a specific class. This will only work, if the Array Element is of that Class. Other casts will fail.

You need something for the object. A cast is just a TypeChange. So if you have something of Type Actor and you this is normaly of type “Rake”, you cast it to Rake and you can use all the functions and variables from Rake. Without the cast you can only use the ones of a normal actor base class. Because the compiler things this Variable is of type Actor and not of Rake.

You can cast many things, for example if you have a CustomCharacter, Controller or GameMode. You just get the base class and take the return value. Drag it into an empty space of your Graph and type “Cast”. This will show you what are the possibilites to cast.

http://puu.sh/cQf2E/9e411985d8.png

If you want to recreate it, just take the “Array Element” of the For Each node and type “cast to rake”. That should bring you your Cast node :X