Your character dies and you need to respawn them.Ĭast to your special Game Mode Blueprint to execute a respawn script. You want to access a specialized version of another Blueprint.Ĭharacter walks into fire causing a Health Value to deplete.Ĭast to your special Character Blueprint to access and change the Health Value. On this page, you will learn about some of the use cases for Casting, see an example for using a Cast To node, read about Target Blueprint Casting as well as other types of casting.īelow are a few examples of when Blueprint Casting could be used: If you want to access properties of the Player Character from another Blueprint, you can use the Get Player Character node and affect the Player Character in very general ways (setting/getting its location, rotation, etc.) but you cannot access any of the custom functionality you have added to the M圜haracter Blueprint you have set up as you are getting the Player Character but not a specific type of Character.īy using the Get Player Character node, then using a Cast To M圜haracter node (the special Character Blueprint), you can then say if the Player Character is M圜haracter, let me access the Variables, Functions, Events or any other special functionality contained within that Blueprint. In other words, say you have created a special Character Blueprint (called M圜haracter for example) that has variables in it or other custom functionality contained within it and assigned it as the Default Pawn Class (or the Character Blueprint all Player Characters use by default). When using a Cast To node in Blueprints, put simply, you are attempting to check if the object you are casting from is the specific object you casted to.