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

Method SetDesiredLean

Source/ALSXT/Private/AlsxtCharacter.cpp:2372–2390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2370// Lean
2371
2372void AAlsxtCharacter::SetDesiredLean(const FGameplayTag& NewLeanTag)
2373{
2374 if (DesiredLean != NewLeanTag)
2375 {
2376 DesiredLean = NewLeanTag;
2377 const auto PreviousLean{ Lean };
2378
2379 MARK_PROPERTY_DIRTY_FROM_NAME(ThisClass, DesiredLean, this)
2380
2381 if (GetLocalRole() == ROLE_AutonomousProxy)
2382 {
2383 ServerSetDesiredLean(NewLeanTag);
2384 }
2385 else if (GetLocalRole() == ROLE_Authority)
2386 {
2387 OnLeanChanged(PreviousLean);
2388 }
2389 }
2390}
2391
2392void AAlsxtCharacter::ServerSetDesiredLean_Implementation(const FGameplayTag& NewLeanTag)
2393{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected