Explain meaning of the statement

In UE course we use this to call a death animation

bool AShooterCharacter :: IsDead() const
return Health <=0;

The code is working, but I don`t understand a meaning of the above.

The line return Health <=0; means that Health is compared to 0 and if it’s less than or equal to zero then function will return true, otherwise it will return false.

Wow, thank you)

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms