Jump to content

Home

Guns appear by a switch, only spawning once..


EvilJedi

Recommended Posts

I have a type of "shop" in my map where you can press a button and a gun appears. I want to make it so that:

 

1) The gun can spawn infinite times

2) The gun will ONLY appear if the button is pressed, if it is picked up, it will not respawn until the button is pressed again.

 

I added the key wait and a value of -1 to the gun, so that it will not respawn, but the gun only spawns once when I press the button. What is the key to have it spawneable infinite times for guns? It's count -1 for NPCs, but the count is ammo for the guns, so what do i do?

Link to comment
Share on other sites

  • 4 weeks later...

i put a vending machine that dispense bacta in my map :D

 

basically, make a triggermultiple for the button, and have it target the item, and give it a wait of something reasonable like 30 or something for 30 seconds. now select the item and give it a wait of -1. i looked up item_*** and it said that items with a wait of -1 spawn only when activated so thats what you should do. just make sure the trigger has a wait of 10 or 30

Link to comment
Share on other sites

I'm not sure on this one, but if you try to make a trigger_multiple, a target_give and a weapon_blaster (f. eg.) and connect the trigger_multiple to the target_give, and then connect the target_give o the weapon_blaster...

 

I haven't tried this, but it's worth a shot:)

Link to comment
Share on other sites

Lol my map is already done. This thread is so old.. Even if target_give worked in MP I wouldn't be able to use it in my map anyway. The shopkeeper doesn't need the guns, its the buyers :p

 

And balboa, read what I said here:

 

I added the key wait and a value of -1 to the gun, so that it will not respawn, but the gun only spawns once when I press the button. What is the key to have it spawneable infinite times for guns? It's count -1 for NPCs, but the count is ammo for the guns, so what do i do?
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...