# Callback Function Triggering On Binding (Unreal 5 C++)

**URL:** <https://forums.unrealengine.com/t/callback-function-triggering-on-binding-unreal-5-c/1992573>\
**Category:** C++\
**Tags:** unreal-engine, function, question, CPP\
**Created:** [August 26, 2024, 2:56pm UTC](https://forums.unrealengine.com/t/callback-function-triggering-on-binding-unreal-5-c/1992573 "2024-08-26T14:56:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SCARBLAZ1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SCARBLAZ1](https://forums.unrealengine.com/u/SCARBLAZ1)\
**Post date:** [August 26, 2024, 2:56pm UTC](https://forums.unrealengine.com/t/callback-function-triggering-on-binding-unreal-5-c/1992573/1 "2024-08-26T14:56:13Z")

</div>

```auto
//add schedule time to schedule list -- done

//for loop the list in tick, if time == schedule time -> broadcast the callback

ScheduleData.ScheduleTime = FMath::Clamp(ScheduleData.ScheduleTime, 0.0f, 24.f);

FOnTimelineEvent OnScheduleHitEvent;

FName functionName = ScheduleData.OnScheduleHitCallback.GetFunctionName();

OnScheduleHitEvent.BindUFunction(ScheduleData.OwnerClass, functionName);

DayNightTimeline.AddEvent(ScheduleData.ScheduleTime, OnScheduleHitEvent);

ScheduleEvents.Add(ScheduleData);

Debug::Print("Schedule Hit: " + ScheduleData.ScheduleName + " at " + FString::SanitizeFloat(ScheduleData.ScheduleTime));

```

My CallBack Function is triggering on binding even without Broadcast().

am not sure why and how its happening, but if I Comment the Bind line the callback isnt triggering.
