FileFront Forums

FileFront Forums (http://forums.filefront.com/)
-   SW:JK3 Modding, Mapping and Editing (http://forums.filefront.com/sw-jk3-modding-mapping-editing-528/)
-   -   NPC Spawn Button (http://forums.filefront.com/sw-jk3-modding-mapping-editing/133905-npc-spawn-button.html)

Dark Maul July 13th, 2004 09:25 PM

Re: NPC Spawn Button
 
Durendal, is that the map I sent you?

Just for reference, so you guys know how to make one in the future:

You need a NPC, a trigger_multiple, a target_deactivate, and a target_activate.
Lets say that your npc is a stormtrooper

Enter these values manually through the entity window. (press 'n' to bring it up)

----------------------------------------------------------------
For the stormtrooper;
NPC_target: activate1
target: deactivate1
targetname: st1
count: -1

For the trigger_multiple (use_button checked);
target: st1
targetname: button1
wait: 5

For the target_activate:
targetname: activate1
target: button1

For the target_deactivate:
targetname: deactivate1
target: button1
------------------------------------------------------------------

That will work. you can simply use that in your map. If you don't care how it works, stop reading this post. I will go on to what each of the terms mean.

target-what the entity activates when it is used.
targetname-what the entity is called, this name is used in target command.
NPC_target-the same thing as target, except the entity activates it when the entity is killed.

So, in effect, you hit the trigger_multiple (called button1) which spawns its target (the stormtrooper). When the stormtrooper is spawned it activates the target_deactivate, which deactivates the button. When the stormtrooper is killed, it uses the NPC_target to activate the target_activate, which activates the trigger once again.

If you didn't understand that, read it over until you do. :D

TK 409er July 15th, 2004 07:52 AM

Re: NPC Spawn Button
 
only if you want one NPC to be spawned at a time-

Jedi Orian August 1st, 2005 10:47 AM

Re: NPC Spawn Button
 
i did wot u sed to do dark mual, but when i run the map, the buttons invisible, and so is the NPC which spawns ( droid remote ) its there cuas i cn hit it and it moves

tFighterPilot August 1st, 2005 11:19 AM

Re: NPC Spawn Button
 
This thread is more than a year old, what makes you think he is still here?

Jedi Orian August 1st, 2005 11:36 AM

Re: NPC Spawn Button
 
lol no idea :D


All times are GMT -7.

Powered by vBulletin®
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.