~$Typemasks::PlayerObjectType;
This gives me -16385 or -101111111111111. Not sure if this would work because I think some masks have more bits than that? (the negative was also messing up).
$Typemasks::All;
This gives me -1, I dont think there's much that I can do with this one to exclude the player mask, nothing like $Typemasks::All - $Typemasks::PlayerObjectType or anything.
$Typemasks::A|$Typemasks::B|$Typemasks::C|$Typemasks::D...
This would work, but it'd look messy but I also thing that out of all the available typemasks, some span more than one object class (because of inheritance) so I really wounldnt know which ones to include.
Some square of 2 (eg 1,2,4,8,...
I could make my own, but I dont know how many total bits I would need as I dont know the maximum that a typemask holds? (or is it the highest an int can go?)
Someone help me out please :)