From 7541243f6b56ca188456ebd9b9b0a10e052a8036 Mon Sep 17 00:00:00 2001 From: Kacper Szelest Date: Wed, 6 Nov 2024 17:13:32 +0000 Subject: [PATCH] Updated input to add interact controller and an interact trace onto the FPS blueprint I added an interact button into the default inputs to have an interact feature for our quest system, and also created an interact trace to be able to detect when the player is looking at an NPC in order to allow them to accept the quest --- Config/DefaultInput.ini | 1 + Content/FirstPerson/Blueprints/BP_FirstPersonCharacter.uasset | 4 ++-- Content/QuestSystem/QuestGiverComponent.uasset | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Config/DefaultInput.ini b/Config/DefaultInput.ini index 77b17e8..44ba485 100644 --- a/Config/DefaultInput.ini +++ b/Config/DefaultInput.ini @@ -109,6 +109,7 @@ DoubleClickTime=0.200000 +ActionMappings=(ActionName="Use Left Weapon",bShift=False,bCtrl=False,bAlt=False,bCmd=False,Key=LeftMouseButton) +ActionMappings=(ActionName="Use Right Weapon",bShift=False,bCtrl=False,bAlt=False,bCmd=False,Key=RightMouseButton) +ActionMappings=(ActionName="Ability1",bShift=False,bCtrl=False,bAlt=True,bCmd=False,Key=One) ++ActionMappings=(ActionName="Interact",bShift=False,bCtrl=False,bAlt=False,bCmd=False,Key=E) +AxisMappings=(AxisName="MoveForward",Scale=1.000000,Key=W) +AxisMappings=(AxisName="MoveForward",Scale=-1.000000,Key=S) +AxisMappings=(AxisName="MoveRight",Scale=1.000000,Key=D) diff --git a/Content/FirstPerson/Blueprints/BP_FirstPersonCharacter.uasset b/Content/FirstPerson/Blueprints/BP_FirstPersonCharacter.uasset index 518ed66..67393f9 100644 --- a/Content/FirstPerson/Blueprints/BP_FirstPersonCharacter.uasset +++ b/Content/FirstPerson/Blueprints/BP_FirstPersonCharacter.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3b3af6f2ee8149cad541941e6a3f4ce4ed418ddad5429f0b2c04bc9401ef7afb -size 183406 +oid sha256:9b82b994267165eab538390fd9123530188949048fecb47b53511d1a408d6bfc +size 240147 diff --git a/Content/QuestSystem/QuestGiverComponent.uasset b/Content/QuestSystem/QuestGiverComponent.uasset index 2e3060c..74b0edd 100644 --- a/Content/QuestSystem/QuestGiverComponent.uasset +++ b/Content/QuestSystem/QuestGiverComponent.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:bf642c8e2054130b0418b560a39bd63fed2dfbeb9d4199c6b3dcde981c63fb91 -size 59616 +oid sha256:b819efaaa0a743e8cd638fe173b5f2c9e479e7a798b7411c5b1ba120df409f3c +size 82446