agentsclimarketplace

Ue5 gas player move to ability range and stop

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt4_8_GLM4.7/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.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill ue5-gas-player-move-to-ability-range-and-stop

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.1 KB, 336 tokens by cl100k_base, as published. Nobody here has run it

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

  1. Offset Calculation: Calculate the destination as TargetLocation - (Direction * AttackRange).
  2. Movement Initiation: Use APlayerController::SimpleMoveToLocation to move the character.
  3. Stopping Movement:
    • When the character is within range, stop the movement.
    • Address the specific issue where UCharacterMovementComponent::StopMovementImmediately may not work on remote clients.
    • Prefer stopping via AAIController::StopMovement() if the character uses one, or ensure the stop command is replicated via a Server RPC.
  4. Ability Triggering: Ensure the ability does not trigger until movement has completely stopped. Use a boolean flag (e.g., IsMovingToTarget) to prevent premature execution.
  5. 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

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.