| 140 | } |
| 141 | |
| 142 | void USprintMovement::Sprint(bool bClientSimulation) |
| 143 | { |
| 144 | if (!HasValidData()) |
| 145 | { |
| 146 | return; |
| 147 | } |
| 148 | |
| 149 | if (!bClientSimulation && !CanSprintInCurrentState()) |
| 150 | { |
| 151 | return; |
| 152 | } |
| 153 | |
| 154 | if (!bClientSimulation) |
| 155 | { |
| 156 | SprintCharacterOwner->SetIsSprinting(true); |
| 157 | } |
| 158 | SprintCharacterOwner->OnStartSprint(); |
| 159 | } |
| 160 | |
| 161 | void USprintMovement::UnSprint(bool bClientSimulation) |
| 162 | { |
nothing calls this directly
no test coverage detected