bl-sdk / PythonSDK

Borderlands 2 PythonSDK
62 stars 54 forks source link

UClass == not returning true even if match #127

Open oh-yes-0-fps opened 2 years ago

oh-yes-0-fps commented 2 years ago
cls = unrealsdk.FindClass('DamageSource_Bullet_C')
child_cls = unrealsdk.FindClass('DamageSource_Bullet_Sniper_C')
unrealsdk.Log(cls)
unrealsdk.Log(child_cls.SuperField)
if cls == child_cls.SuperField:
    unrealsdk.Log('True')
  #Doesn't log True

You can get around this by using .Name while comparing but it just seems like an equal should work