tpt.get_property returns nothing

  • Marte2007
    25th Aug 2011 Member 0 Permalink
    It seems that doing for example tpt.get_property("type",6") doesn't return anything. Is this because it returns object and not string? If so how can I view it?
  • mniip
    25th Aug 2011 Developer 0 Permalink
    6 without quotes or particle #6 doesnt exist
  • Marte2007
    25th Aug 2011 Member 0 Permalink
    Yes it exists, is a pixel of metl, I'm sure it is #6 because I see it on the hud. Trying to quote it
    EDIT: no quote, it requires a number, not string (anyway tried it and it doesn't work)
    EDIT: it doesn't work even by specifying x and y (as in the wiki)
  • mniip
    25th Aug 2011 Developer 0 Permalink
    how do you check returnage?
  • Marte2007
    25th Aug 2011 Member 0 Permalink
    In the console
  • jacksonmj
    25th Aug 2011 Developer 0 Permalink
    Try using tpt.log to display the return value?
    tpt.log(tpt.get_property("type",6))
  • Marte2007
    25th Aug 2011 Member 0 Permalink
    Ok thanks, it returns 14 which I mean is the code of metl, so I have to match them manually...