ADD a "global" function named "Find Nearest Enemy" in Content/BluePrints/Utilities/BP_UtilityLibrary.uasset
Add a new blue print Content/BluePrints/Missile/BP_Missile.uasset. It chases a given enemy and make damage to it.
Add a new map Content/Maps/AttackTestMap.umap to test.
VERY IMPORTANT!!
I created a dummy enemy.
Content/BluePrints/DummyEnemy/BP_DummyEnemy.uasset
make sure enemies have those event calls. and a variable to store health.
MOST IMPORTANT
THE ENEMIES MUST HAVE THE FOLLOING COLIISION PROPERTIES.
A lot of things happened
ADD a "global" function named "
Find Nearest Enemy
" inContent/BluePrints/Utilities/BP_UtilityLibrary.uasset
Add a new blue print
Content/BluePrints/Missile/BP_Missile.uasset
. It chases a given enemy and make damage to it.Add a new map
Content/Maps/AttackTestMap.umap
to test.VERY IMPORTANT!! I created a dummy enemy.
Content/BluePrints/DummyEnemy/BP_DummyEnemy.uasset
make sure enemies have those event calls. and a variable to store health.MOST IMPORTANT THE ENEMIES MUST HAVE THE FOLLOING COLIISION PROPERTIES.