
546 Game Development and Simulation with Unreal Technology
FIGURE 8.44: Only Update Score if Active Ball Spawner E vent.
18. Next, we w ill nee d to make sure that each B all Spawner keeps trac k of the gam e
state. To do this, we will communicate this information from the level blueprint
by calling each spawner’s GameState event. To do this, perform the following
tasks:
a. Return to the level blueprint. Open it up if it is closed.
b. Find the Set function f or the GameIsA ctive variable.
c. Drag a wire off from this Set function.
d. Search for and place a F or Each Loop.
e. Drag a Get for the array of BallSpawners to the left of the For Each
Loop. Note: ...