EGameplayAbilityNetSecurityPolicy::Type

What protections does this ability have? Should the client be allowed to request changes to the execution of the ability?

Choose your operating system:

Windows

macOS

Linux

References

Module

GameplayAbilities

Header

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/Abilities/GameplayAbilityTypes.h

Include

#include "Abilities/GameplayAbilityTypes.h"

Syntax

namespace EGameplayAbilityNetSecurityPolicy
{
    enum Type
    {
        ClientOrServer,
        ServerOnlyExecution,
        ServerOnlyTermination,
        ServerOnly,
    }
}

Values

Name

Description

ClientOrServer

No security requirements. Client or server can trigger execution and termination of this ability freely.

ServerOnlyExecution

A client requesting execution of this ability will be ignored by the server. Clients can still request that the server cancel or end this ability.

ServerOnlyTermination

A client requesting cancellation or ending of this ability will be ignored by the server. Clients can still request execution of the ability.

ServerOnly

Server controls both execution and termination of this ability. A client making any requests will be ignored.

Remarks

What protections does this ability have? Should the client be allowed to request changes to the execution of the ability?