How would one create a random weapon spawn, when someone pushes a button? Im making an infection map and im gonna have “mystery boxes” i dont care about the time etc, i just need a system to spawn a random weapon on a set trigger.
Let me get back to you on this when I get the chance. I may have an idea for this.
> 2533274808210415;2:
> Let me get back to you on this when I get the chance. I may have an idea for this.
Thanks, from what i know, theres 2 ways to do this,
- dont have it random, but make it appear that way by having a list of weapons that will be given in order, but that will be abused by players that have played the map before,
- random weapon spawning, which i dont know how to do XD.
There is a YouTube video of some doing that. I think it’s under Forgehub or Forge Labs on YouTube.
What FireGOKU 24 said! Their is a video ive seen I dont remember it but it is on youtube just type what yu want
I’m having an issue where if I create an object and put script on it, then the object moves too far from its starting place and is deleted or despawned, then the object is gone, but the Budget Window still says the scripting is spent, like the object was deleted, but the script was not.
An example; I made a road. I put a car on the road. On the car, I placed 4 Scripts: 1 On Message Receive Alpha Spawn, 2 On Message Receive Bravo Offset X 500, 3 On Message Receive Charlie Offset X 500, 4 On Message Receive Delta Despawn. Now this worked GREAT at first. I used a Script brain with timers to run Alpha, Bravo, Charlie, Delta. So the car went 1,000 on X, Despawned, Respawned, then went again, over and over. Then I made it go Alpha, Bravo, Charlie, Bravo, Charlie, Delta. The Car spawned, went 2,000 on X, Despawned, and never came back. I even went into the Map Options and tried RESPAWN ALL OBJECTS, but it did not respawn the car, but the Budget still said 10 SCRIPTS (4 from the car, 6 from the Brain). I tried to DELETE ALL UNLOCKED (I am 100% sure the car was NOT locked), and it deleted EVERYTHING like it was supposed to, Budget said OBJECTS 0/1024, GROUPS 0/128, LIGHTMAP, COLLISION, PHYSICS, all 0%, but for Scripts, it was still at 4…
How do I get rid of the scripts, and how do make the car not disappear FOREVER?