Im making a game where the enemies guns are pinned to them but if i put in more than one enemy and gun the gun pins to the same enemy.
Develop games in your browser. Powerful, performant & highly capable.
Put enemy and gun in a 'container'. Check the manual.