UKismetMathLibrary::GreaterEqual_TimespanTimespan
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Returns true if A is greater than or equal to B. Equivalent to !Less_TimespanTimespan(A, B).
Caveats & Gotchas
- • Equality in this comparison is exact tick equality, so the same float-construction rounding issues that affect EqualEqual_TimespanTimespan apply here.
- • In C++ use the >= operator on FTimespan directly.
Signature
static UE_INL_API bool GreaterEqual_TimespanTimespan( FTimespan A, FTimespan B ); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| A | FTimespan | Left-hand timespan. | — |
| B | FTimespan | Right-hand timespan. | — |
Return Type
bool Example
Enforce minimum ability cooldown C++
FTimespan MinCooldown = FTimespan::FromSeconds(1.0);
if (UKismetMathLibrary::GreaterEqual_TimespanTimespan(TimeSinceLastUse, MinCooldown))
{
bCanActivate = true;
} Tags
Version History
Introduced in: 4.7
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?