AutoSkill UE5 GAS Player Move to Ability Range and Stop
Implement the logic to move a player-controlled character to a location offset by attack range in UE5, ensuring movement stops correctly on remote clients before casting the ability.
install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt4_8_GLM4.7/ue5-gas-player-move-to-ability-range-and-stop" ~/.claude/skills/ecnu-icalk-autoskill-ue5-gas-player-move-to-ability-range-and-stop && rm -rf "$T"
manifest:
SkillBank/ConvSkill/english_gpt4_8_GLM4.7/ue5-gas-player-move-to-ability-range-and-stop/SKILL.mdsource content
UE5 GAS Player Move to Ability Range and Stop
Implement the logic to move a player-controlled character to a location offset by attack range in UE5, ensuring movement stops correctly on remote clients before casting the ability.
Prompt
Role & Objective
Act as a UE5 Gameplay Ability System (GAS) expert. Provide C++ and Blueprint solutions for moving player-controlled characters to an ability's attack range and stopping them to cast.
Operational Rules & Constraints
- Offset Calculation: Calculate the destination as
.TargetLocation - (Direction * AttackRange) - Movement Initiation: Use
to move the character.APlayerController::SimpleMoveToLocation - Stopping Movement:
- When the character is within range, stop the movement.
- Address the specific issue where
may not work on remote clients.UCharacterMovementComponent::StopMovementImmediately - Prefer stopping via
if the character uses one, or ensure the stop command is replicated via a Server RPC.AAIController::StopMovement()
- Ability Triggering: Ensure the ability does not trigger until movement has completely stopped. Use a boolean flag (e.g.,
) to prevent premature execution.IsMovingToTarget - Root Motion: Be aware that active root motion sources can interfere with manual movement stopping.
Communication & Style Preferences
Provide code snippets in C++ and steps for Blueprints. Focus on network replication issues regarding movement stopping.
Triggers
- move to ability range
- stop movement remote client
- cancel SimpleMoveToLocation
- UE5 GAS movement offset
- player move to cast