MCPcopy Create free account
hub / github.com/Voidware-Prohibited/ALSXT / SetDesiredStatus

Method SetDesiredStatus

Source/ALSXT/Private/AlsxtCharacter.cpp:3287–3307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3285// Status
3286
3287void AAlsxtCharacter::SetDesiredStatus(const FGameplayTag& NewStatusTag)
3288{
3289 if (DesiredStatus != NewStatusTag)
3290 {
3291
3292 MARK_PROPERTY_DIRTY_FROM_NAME(ThisClass, DesiredStatus, this)
3293
3294 if (GetLocalRole() == ROLE_AutonomousProxy)
3295 {
3296 ServerSetDesiredStatus(NewStatusTag);
3297 }
3298 else if (GetLocalRole() == ROLE_SimulatedProxy && GetRemoteRole() == ROLE_Authority)
3299 {
3300 // MulticastSetDesiredStatus(NewStatusTag);
3301 // ServerSetDesiredStatus(NewStatusTag);
3302 SetStatus(NewStatusTag);
3303 DesiredStatus = NewStatusTag;
3304 Status = NewStatusTag;
3305 }
3306 }
3307}
3308
3309void AAlsxtCharacter::ServerSetDesiredStatus_Implementation(const FGameplayTag& NewStatusTag)
3310{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected