Skip to content

Instantly share code, notes, and snippets.

View dyanikoglu's full-sized avatar
🏠
Working from home

Doğa Can Yanıkoğlu dyanikoglu

🏠
Working from home
View GitHub Profile
@dyanikoglu
dyanikoglu / ABMWeapon.cpp
Created October 31, 2020 07:57
Weapon Fire Event Initialization
void ABMWeapon::InitializeFireEvent()
{
FBMWeaponEvent& Event = RegisterEvent({EBMWeaponEventType::Fire, GetFName(), true});
Event.BeginCallback.BindLambda([&]
{
bFiring = true;
// While preparing for fire, we realized there is no ammo left, so directly play a dry fire sound. Process step is not used on
// dry fire animations