View Full Version : emplaced gun

06-17-2002, 04:01 AM
I'm making a single player map and want to put an emplaced gun manned by a stormtrooper in it. How do I do that? I know how to put in an emplaced gun that can be used by the player but want an "enemy" one that you have to fight.

06-17-2002, 04:32 AM
After you placed the gun entity, select it and open entity window and give it targetname.

key: targetname
value: gun1

Next, place your NPC_stormtrooper beside the gun. Give him following keys:

key: spawnscript
value: yavin_canyon/emplaced_guns

key: parm1
value: gun1

That's it.

06-17-2002, 04:50 AM
worked great. thanks xcom!