1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

UE2 - UT2kX Question about bDeleteMe

Discussion in 'Programming' started by EvilT-ModZ, Jul 27, 2016.

  1. EvilT-ModZ

    EvilT-ModZ Un-Gravitify

    Joined:
    Aug 3, 2011
    Messages:
    39
    Likes Received:
    0
    Hello, could someone tell me, when we have to use bDeleteMe in conditions?
    Is it only important only for iterators? Or bDeleteMe should be in all conditions where we check if Actor is valid or not?
    Thanks in advance
     
  2. Wormbo

    Wormbo Administrator Staff Member

    Joined:
    Jun 4, 2001
    Messages:
    5,915
    Likes Received:
    36
    In short: really never.

    bDeleteMe is only set when Destroy() returns successfully, which it always does unless you attempt to destroy a PlayerController. When is is set, native code will ensure UnrealScript won't see the actor anymore. The context operator (".") will start throwing Accessed None warnings, comparison will consider the reference None, etc. That's what you should be looking for instead.
     
  3. EvilT-ModZ

    EvilT-ModZ Un-Gravitify

    Joined:
    Aug 3, 2011
    Messages:
    39
    Likes Received:
    0
    Thank you for an answer.
     

Share This Page