
624 Game Development and Simulation with Unreal Technology
IMPLEMENTING HIT FLASH ON ENEMY
Now, we will set up the network in blueprints responsible for showing a flash
on an enemy’s body w hen p la yer projectiles hit it.
15. Open u p the Enemy blueprin t.
16. Create a new variable called MeshMat in the Enemy event graph.
17. Change the type of this new variable to Material Interface. To do this, you
can either click on the drop -down box next to the Variable Type a nd search for
Material Interface in the search bar, or open the O bject Reference tab an d
scroll down to Material Interface (see Figure 9.54(a )).
(a) (b)
FIGURE 9.54: (a) A dding a Material ...