# Function override statement

**URL:** <https://forums.unrealengine.com/t/function-override-statement/385097>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [February 16, 2017, 11:31am UTC](https://forums.unrealengine.com/t/function-override-statement/385097 "2017-02-16T11:31:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![IhanaMies](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IhanaMies](https://forums.unrealengine.com/u/IhanaMies)\
**Post date:** [February 16, 2017, 11:31am UTC](https://forums.unrealengine.com/t/function-override-statement/385097/1 "2017-02-16T11:31:42Z")

</div>

Is there a way to make a override to correspond to certain statements?  
My character has an Event Input called Interact. I’d like it to have to two different functions. One when trying to enter a vehicle, which is the basic behaviour for the Interact, but also override when I want the player to interact with inferfaced actors.

I have set Interact event to Override to make a traceline and call whatever interface function the object has, if it has. But then I cannot enter the vehicles anymore. I tried to look for a statement that if the object I try to interact is a vehicle, default behaviour occurs, otherwise overrided one.

---

<div class="post-metadata">

**Author:** ![BPANDREW](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bpandrew/32/1194681_2.png) [@BPANDREW](https://forums.unrealengine.com/u/BPANDREW)\
**Post date:** [February 16, 2017, 11:59am UTC](https://forums.unrealengine.com/t/function-override-statement/385097/2 "2017-02-16T11:59:48Z")

</div>

for this I used a blueprint interface on my objects, not a overloaded method or anything like that with my character - “do action” then when you use your action button, you call that on whatever object you have reference to.
