function GetNearestTrapToObject (object oTarget=OBJECT_SELF, int nTrapDetected=TRUE)
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.
- Return type: object
- Include file: nwscriptdefn