Announcement

Collapse
No announcement yet.

Gameplay Ability -> Warning: Can't activate LocalOnly or LocalPredicted ability

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Gameplay Ability -> Warning: Can't activate LocalOnly or LocalPredicted ability

    Helo and sorry for bad english.

    So.. here is the problem:

    I have dedicated server.
    1. server creates actor
    2. server gives ability to actor
    3 Player connects and possesses actor.
    4 trying activate ability.
    5 Getting error:
    Warning: Can't activate LocalOnly or LocalPredicted ability Default__GA_BasicMeleeAtack_C when not local! Net Execution Policy is 0.

    and ability dont work...

    Any suggestions ??? where problem is hiding ??
    Last edited by Unit Seven; 04-09-2019, 07:15 AM.

    #2
    try setting pawn ownership to the player when they possess it, that should dodge around the "Local" issue. Also make sure whatever variable flags your ability to be useable is replicated.

    Comment


      #3
      Originally posted by NotSoAccurateNo1 View Post
      try setting pawn ownership to the player when they possess it, that should dodge around the "Local" issue. Also make sure whatever variable flags your ability to be useable is replicated.
      I defined owner but that not solved problem.

      after some research i added PossessedBy override so when pawn is possessed, actor info is refreshed

      Code:
      void ACharacterRoot::PossessedBy(AController * NewController)
      {
          Super::PossessedBy(NewController);
      
          AbilitySystemComponentas->RefreshAbilityActorInfo();
      }
      and removed Set Owner node.

      TBW thanx for your time
      Last edited by Unit Seven; 04-10-2019, 07:53 AM.

      Comment

      Working...
      X