In modern warfare, it is essential for commanders to assess battlefield conditions and make appropriate decisions to counter enemy forces. Thus, a system is required to assist commanders in decision-making. This highlights the significance of the Dynamic Weapon-Target Assignment (DWTA) problem in command and control. In this paper, a close-combat battlefield scenario is first proposed, which has not been addressed in any prior research. Subsequently, a method based on the Particle Swarm Optimization (PSO) algorithm is presented, capable of solving the DWTA problem tailored to the proposed scenario. The suggested method effectively resolves the issue of becoming trapped in local optima. While most existing approaches to DWTA focus solely on weapon platforms and threats, the method introduced in this paper additionally incorporates assets into consideration. Finally, the proposed method is evaluated and compared with other methods on two distinct scenarios, with results demonstrating its superior performance.