lfnetwork.com mark read register faq members calendar

Thread: Noob NPC question
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 08-31-2006, 06:56 PM   #1
Kenobi9191
Lurker
 
Join Date: Aug 2006
Posts: 6
Noob NPC question

Hey guys, I was just wondering how I would go about spawning a taun taun cause there isn't one in the list :P I heard you type something in the Key and Value of NPC_Vehicle. Also, how you make it so they respawn after a certin amount of time/from a button.
Kenobi9191 is offline   you may: quote & reply,
Old 09-01-2006, 05:49 PM   #2
CalcProgrammer1
Rookie
 
CalcProgrammer1's Avatar
 
Join Date: Jul 2006
Posts: 91
Make a NPC_vehicle and give it a NPC_type of "tauntaun"
CalcProgrammer1 is offline   you may: quote & reply,
Old 09-01-2006, 11:08 PM   #3
Kenobi9191
Lurker
 
Join Date: Aug 2006
Posts: 6
Hey thanks man! do you know how I can make it respawn buy button?
Kenobi9191 is offline   you may: quote & reply,
Old 09-02-2006, 12:56 AM   #4
CalcProgrammer1
Rookie
 
CalcProgrammer1's Avatar
 
Join Date: Jul 2006
Posts: 91
give the npc_vehicle a key "count" and val "-1" (makes it respawn infinitely), then you must give it a targetname, then make a trigger_multiple (its invisible in the game, so you want to make an object of some kind to be your control panel or button) and target it to the targetname of your npc_vehicle, so the npc_vehicle has key "targetname" and val is a name you want to call the vehicle such as "vehicle_tauntaun_1" and then the trigger_multiple must have "target" and val "vehicle_tauntaun_1", and check the Use_button spawn flag checkbox to make it a button. Note that when you give the vehicle a targetname it no longer automatically spawns itself when the map starts, therefore you must press the button to spawn it. Oh, and give the trigger_multiple a "wait" of "5" (thats just the number I usually use, its how many seconds the button waits before spawning another vehicle, if you don't do this you'll spawn many many of them per second over top of each other and probably crash your computer if you hold the button down long enough)

So:
npc_vehicle:
"NPC_type", "tauntaun"
"count", "-1"
"targetname", "vehicle_tauntaun_1"

trigger_multiple:
CHECK use_button
"wait", "5"
"target", "vehicle_tauntaun_1"
CalcProgrammer1 is offline   you may: quote & reply,
Old 09-02-2006, 01:06 AM   #5
CalcProgrammer1
Rookie
 
CalcProgrammer1's Avatar
 
Join Date: Jul 2006
Posts: 91
Another way to make them respawn is to put a trigger_once without the use_button check, but the player must pass through this before he reaches the vehicle because this initially spawns the vehicle, the trigger_once only needs a "target" key. Then add the "target" key to the vehicle itself, so that the vehicle basically targets itself, this happens when the tauntaun dies, it targets itself, and a new tauntaun appears in the spot where the npc_vehicle is. However, if playing in a mod where entities can be destroyed, such as Lugormod with /blowup, the entity may not fire its target when it is destroyed without being killed and therefore won't respawn. I prefer buttons to spawn vehicles but it all depends on how you want the map to operate.
CalcProgrammer1 is offline   you may: quote & reply,
Old 09-02-2006, 01:45 AM   #6
Kenobi9191
Lurker
 
Join Date: Aug 2006
Posts: 6
Thanks a lot man!
Kenobi9191 is offline   you may: quote & reply,
Old 09-02-2006, 10:20 PM   #7
CalcProgrammer1
Rookie
 
CalcProgrammer1's Avatar
 
Join Date: Jul 2006
Posts: 91
Its no problem, I had those same questions when I started mapping about two months ago, and eventually figured it out.
CalcProgrammer1 is offline   you may: quote & reply,
Old 09-03-2006, 02:40 PM   #8
Kenobi9191
Lurker
 
Join Date: Aug 2006
Posts: 6
Do you have any suggestions for a cool smoke/steam effect with Fx_runner?
Kenobi9191 is offline   you may: quote & reply,
Old 09-03-2006, 06:33 PM   #9
CalcProgrammer1
Rookie
 
CalcProgrammer1's Avatar
 
Join Date: Jul 2006
Posts: 91
well, for a small smoke effect i usually use volumetric/smoke.efx, I've also used the volumetric/steam_jet.efx, it's pretty cool. Here's a list of the fxfiles:
http://www.richdiesal.map-craft.com/...Xlistrefs.html

Also, remember to put a / instead of a \ in your fxfile pathnames. It won't make a difference if you play in just standard JKA, but I know lugormod doesn't support \ and other mods might not either.
CalcProgrammer1 is offline   you may: quote & reply,
Old 09-03-2006, 10:04 PM   #10
Kenobi9191
Lurker
 
Join Date: Aug 2006
Posts: 6
Thanks once again Calc
Kenobi9191 is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JA Mapping > Noob NPC question

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:46 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.