In config.cpp, we all know that Soldier inherits from Land (or is it man? Feck, I forget.)
It there any way to find the nearest object that inherits from a specified BASE CLASS?
return the nearest object that derives from class Man? I haven't tried it - I'm at work. Which is why I am asking you lot, so I don't have to try it later on myself
I certainly don't like using
_obj = NearestObject[player, "SoldierEB"]
_obj2 = NearestObject[player, "SoldierEMG"]
_obj3 = NearestObject[player, "Civilian1"]
etc. etc. because it's slow as feck!
Am I lazy or what?
But I think this is a valid question!!!