View Full Version : How do I make a stormtrooper NPC friendly?
11-11-2003, 09:33 PM
WHen I put the stormtrooper NPC in my map he always starts shooting at me. How can I make him so he is friendly? (Multiplayer)
11-12-2003, 02:00 AM
To make usual enemy NPCs to not attack the player, either the player's team needs to be changed, or the NPC's needs to be.
Usually, for specific NPCs in a map, this one done with a script... like the bad guys in the Jedi Outcast bar.
11-12-2003, 08:41 PM
Well I have tried a few different NPC's in my map, and the stormtrooper seems to be the only one who attacks me. (Jan and the imperial officer dont).
11-13-2003, 02:33 PM
Create a new text file, name it stormtrooper.npc and fill it with this:
// race klingon
Put it under ext_data\npcs\ into a pk3 file and start the game. The trooper shouldn't shoot you anymore.
The magic is done by the lines "playerTeam" and "enemyTeam".
NOTE: delete the pk3 or rename it to .zip, or the stormtroopers will be allied with you throughout the game.
11-13-2003, 07:48 PM
11-13-2003, 08:02 PM
Hmmm I tried the script in the pk3 and in a seperate pk3 but there must be somthing wrong with it because when I go into my map the console tells me it can't spawn a stormtrooper. Is this for MP or just Single player?
vBulletin®, Copyright ©2000-2014, Jelsoft Enterprises Ltd.