Skip to content

Commit d7510ab

Browse files
committed
Bring codes that set target entity back to fix character not casting skill to target entity issues. But this can cause missile not to go aiming target which have to fix at CORE :(
1 parent be8de58 commit d7510ab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Scripts/AimAtCursorPlayerCharacterController.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ protected void UpdateLookInput()
315315
{
316316
foundTargetEntity = true;
317317
CacheUISceneGameplay.SetTargetEntity(tempGameEntity.Entity);
318+
PlayerCharacterEntity.SetTargetEntity(tempGameEntity.Entity);
318319
SelectedEntity = tempGameEntity.Entity;
319320
if (tempGameEntity.Entity != PlayerCharacterEntity.Entity)
320321
{
@@ -355,6 +356,7 @@ protected void UpdateLookInput()
355356
{
356357
foundTargetEntity = true;
357358
CacheUISceneGameplay.SetTargetEntity(tempGameEntity.Entity);
359+
PlayerCharacterEntity.SetTargetEntity(tempGameEntity.Entity);
358360
SelectedEntity = tempGameEntity.Entity;
359361
if (tempGameEntity.Entity != PlayerCharacterEntity.Entity)
360362
{
@@ -380,6 +382,7 @@ protected void UpdateLookInput()
380382
if (!foundTargetEntity)
381383
{
382384
CacheUISceneGameplay.SetTargetEntity(null);
385+
PlayerCharacterEntity.SetTargetEntity(null);
383386
SelectedEntity = null;
384387
}
385388

0 commit comments

Comments
 (0)