MCPcopy Create free account
hub / github.com/DruidMech/MultiplayerCourseBlasterGame / SetHUDAmmo

Method SetHUDAmmo

Source/Blaster/Weapon/Weapon.cpp:104–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104void AWeapon::SetHUDAmmo()
105{
106 BlasterOwnerCharacter = BlasterOwnerCharacter == nullptr ? Cast<ABlasterCharacter>(GetOwner()) : BlasterOwnerCharacter;
107 if (BlasterOwnerCharacter)
108 {
109 BlasterOwnerController = BlasterOwnerController == nullptr ? Cast<ABlasterPlayerController>(BlasterOwnerCharacter->Controller) : BlasterOwnerController;
110 if (BlasterOwnerController)
111 {
112 BlasterOwnerController->SetHUDWeaponAmmo(Ammo);
113 }
114 }
115}
116
117void AWeapon::SpendRound()
118{

Callers 3

EquipPrimaryWeaponMethod · 0.80
OnRep_EquippedWeaponMethod · 0.80

Calls 1

SetHUDWeaponAmmoMethod · 0.80

Tested by

no test coverage detected