| 3285 | // Status |
| 3286 | |
| 3287 | void 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 | |
| 3309 | void AAlsxtCharacter::ServerSetDesiredStatus_Implementation(const FGameplayTag& NewStatusTag) |
| 3310 | { |
nothing calls this directly
no outgoing calls
no test coverage detected