Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Npc spawned by button...

Page: 1 of 1
 adrid
08-15-2004, 3:49 PM
#1
ok before anyone thinks omg another one....just so you know im new to mapping and im trying to build an arena that allows npcs to be spawned by the press of a button. this is what i have setup in gtk radient.

http://img64.exs.cx/img64/1786/untitled.th.jpg) (http://img64.exs.cx/my.php?loc=img64&image=untitled250.jpg)

and heres the details on what they should be doing.

http://img64.exs.cx/img64/1988/untitled.th.jpg) (http://img64.exs.cx/my.php?loc=img64&image=untitled251.jpg)
http://img64.exs.cx/img64/438/untitled.th.jpg) (http://img64.exs.cx/my.php?loc=img64&image=untitled252.jpg)

in game itll only spawn once and never again.can someone please help me?
 SMoKE
08-15-2004, 4:52 PM
#2
The pictures aren't very big, so it's difficult to see... But anyway you shoult have a trigger_multiple:

key: classname
value: trigger_multiple

key: target
value: t1

key: wait
value: 3

(You also better have the use_button checkbox checked)
Then you need a NPC_spawner:

Key: classname
Value: NPC_spawner

Key: NPC_type
Value: Kyle (f. eg.)

Key: count
Value: -1

Then place the NPC_spawner where you want the NPC to be spawned, and then you must place the trigger_multiple where you want the button to be... that's it.
 adrid
08-18-2004, 8:16 PM
#3
thanks it worked!
ok another question.

how do i give it more health
and how do i make it die after a certain amount of time has past and how do i keep it confined to an area?
 bael1
08-19-2004, 8:55 AM
#4
i don't know about giving it more health, but, i think to confine t to an area this should work (i havn't tried it) make a brush covering where ever you dont want the NPC to go, and then cover it in texture/system/block NPC
 *Dark
08-19-2004, 9:09 AM
#5
to change the health you would have to edit the .npc file and create a new npc so that there are not anoying consiquences.
 Ice Dyn4stY™
08-19-2004, 2:24 PM
#6
rofl, to change the health:
"KEY=health" "VALUE=500" (For examle ;) )
 *Dark
08-19-2004, 3:09 PM
#7
:D thought that only worked on vehicles or something like that
 EvilJedi
08-19-2004, 3:18 PM
#8
People should search for a change.. sheesh...
 Ice Dyn4stY™
08-19-2004, 3:34 PM
#9
Originally posted by *Dark
:D thought that only worked on vehicles or something like that
Why should it? ;) *hrhr*
 adrid
08-19-2004, 11:35 PM
#10
well the health commands work...but placing that block npc thing on the entire map will cause problems wont it?
 EvilJedi
08-20-2004, 1:59 AM
#11
Then any NPC that spawns will not move. This will probably increase fps a lot if you put it throughout the whole map. Just put it in the places where the NPCs shouldn't go to, such as doorways and such. And by the way, block npc only works in SP.
 adrid
08-20-2004, 5:10 AM
#12
DoH! ok then so its either kill or be killed when it comes to npcs.can they use teleporters? so that if u need to escape u just run through the teleporter and be safe?another thing is how do i set a count down so that they dont live forever and cause lag?
 *Dark
08-20-2004, 5:58 AM
#13
i am sure there is a command which the npc will trigger when spawns (like key: npc_spawn possable, its only a guess. look in npc_spawner for the right key) and then link that to a target_delay, put in a delay for how ever long and then link it to a target_kill. that should kill the npc after the delay has run out
Page: 1 of 1