How the following comparison works before you initializing LastDoorOpenTime
specially before entering TriggerVolume
object.
(GetWorld()->GetTimeSeconds() - LastDoorOpenTime > DoorCloseDelay)
How the following comparison works before you initializing LastDoorOpenTime
specially before entering TriggerVolume
object.
(GetWorld()->GetTimeSeconds() - LastDoorOpenTime > DoorCloseDelay)
That would be undefined behaviour, so please don’t do what Ben did and instead initialise where it’s declared.
Thanks Dan!
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.