Implement support to pass on target parameters (target_param1-3 and target_paramX/Y/Z/O) when building the actions and use this for newly implemented target type SMART_TARGET_CLOSEST_ENEMY (PR'd).