Blueprint Variable Casting Problem

yo dougbott,
for getting any other blueprint in the level i often use the “GetAllActorsofClass” (i think thats the name) it will return an array of all those particular actors, which is really only handy if you have only one of them or if you know its name or something else to cross check.

alternatively.

i make actors ‘register’ themselves to some custom variable in my gamemode class. the only reason i do this is that every class extended from actor has the function GetGameMode which then you typecast to your used gamemode class and access said custom variable via that. :slight_smile:

also just save that ‘MyCharacter’ as a variable for later access so you dont have that process intensive typecasting every tick.