// radius, because for most trap spells this is 1 foot, much less than the activation distance.
// Using activation distance as the trap range.
if(distance >trapRange&&actor==MWMechanics::getPlayer())// player activated object outside range of trap
if(actor ==MWBase::Environment::get().getWorld()->getPlayerPtr()&&MWBase::Environment::get().getWorld()->getDistanceToFacedObject()>trapRange)// player activated object outside range of trap