#336: Shock loop : Enemy Move
7 messages · Page 1 of 1 (latest)
11 days without answers, I guess no one knows how to help me, not even the boss? why do enemies move when they are electrocuted?
I just went over this section and it feels like an oversight. His enemies couldn't move because he was off the nav mesh. It's missing a Shocked counterpart to all the functionality that resulted in the HitReacting bool on the blackboard being changed. It doesn't look like this was addressed later on looking at the github repo.
a simple solution for this would be to restrict movement in the SetIsBeingShocked_Implementation
void AAuraCharacterBase::SetIsBeingShocked_Implementation(bool bInShock)
{
bIsBeingShocked = bInShock;
GetCharacterMovement()->MaxWalkSpeed = bIsBeingShocked ? 0.f : BaseWalkSpeed;
}
thx man works for me 🙂
This prevents the enemy from walking but I'm still having a problem where the enemy can attack me if already in range. Is it just a me problem or not ?