GetNearestTrapToObject

// Get the trap nearest to oTarget. // Note : "trap objects" are actually any trigger, placeable or door that is // trapped in oTarget's area. // - oTarget // - nTrapDetected: if this is TRUE, the trap returned has to have been detected //  by oTarget. object GetNearestTrapToObject(object oTarget=OBJECT_SELF, int nTrapDetected=TRUE);