#How to I make a trigger volume spawn a weapon like for a military arsenal.
1 messages · Page 1 of 1 (latest)
if you have a limited suply then just get a list of all weapons, go through that list and then equip first weapon that isn't taken already
if you want an unlimited suply you need to change gamerules so that everyone spawns with a gun, make players respawn when the touch the interactiion volume and put trigger volues to delet every gun on other spawnpoints that you use
How do I make the list that checks if a weapon is not taken already?
Im kinda new to this helpful community and I’m trying to learn as much as i can. @weary snow
Would you be able to join my game and show me perhaps? That would be awesome 😎
- add a tag to every gun you're using
- get all with tag (purple input is the tag you put on your guns)
Ty very much!
@weary snow how do I add inputs to the recroom object get all with tag? It gives me one purple input and I need like 4 inputs
why would you need 4 more?
you just set purple input to the tag and then give that tag to the guns
it will output all objects with that tag
Ohhh my bad I thought I needed 4 different tags lol
Now I am guessing I need an if chip. Maybe a if has tag chip. How do I make it where it verifies if it has the tag then equips the gun that has not been taken yet?
1.make a bool variable "done"
2.for each (input list of objects) > if (not "done") > if (object is not currently equipped, use "recroom object last equiped" for that) > equip to main hand > set done to true
3.foreach "done" output > set "done"(the variable) to false
Would you be able to send me a screen shot of an example I’m sorry for asking so much if you could that would be grand and would make my day
So I have an if chip set to false and a bool variable set to true. I hook up the trigger volume to the if chip set to false and the if chip I hook up to the bool variable then hook up the bool variable to the holster equip. But how do I hook up the list or the rec room get all with tag
Man I need a maker pen class xD
on trigger activation (forgor proper name) > for each (connect yellow input to the "get all with tag") "Loop" output > if (connect red input to bool variable you made) "then" output > if (connect red intpu to "equiped" red output of "recroom object last holding", yellow input of last holding chip should be connected to foreach yellow output) > equip to main hand (player input is connected to player output of the trigger, objet input is yellow output of foreach) > set bool variable to true (clone the variable chip, set red input to true and connect the orange input to the orange output of equip object)
something like that
idk how to explain it more simple
you could but its not that neccecary if you know stuff like Scratch or other block proggraming stuff like Lego mindstorm or unreal engines blueprints
just takes some practice to understand how stuff works
https://drive.google.com/file/d/1jWZ6Czvr09aAyOztCNyZqMB4Q8sUYZhN/view?usp=sharing helpful to understand basics