• Weapon Spawn Schedule
    6 replies, posted
So I want weapons to spawn in various locations on my server on a schedule(Like in this specific spot an AK will spawn every fifthteen minutes)How would I go about doing this?
Use Examples from the wiki to help you out i think you could change this to work [code] for i = 1, 5 do local zombie = ents.Create( "npc_zombie" ) zombie:SetPos( Vector( i*40, 0 , 250 ) ) zombie:Spawn() timer.Simple( 10 + i, function() zombie:Remove() end ) end [/code] from [URL="https://wiki.garrysmod.com/page/timer/Simple"]Here[/URL]
[QUOTE=Stalinalive;49359065]Use Examples from the wiki to help you out i think you could change this to work [code] for i = 1, 5 do local zombie = ents.Create( "npc_zombie" ) zombie:SetPos( Vector( i*40, 0 , 250 ) ) zombie:Spawn() timer.Simple( 10 + i, function() zombie:Remove() end ) end [/code] from [URL="https://wiki.garrysmod.com/page/timer/Simple"]Here[/URL][/QUOTE] The timer works, but when I pick up the weapon I get script errors because the timer fails, any suggestions?
Show us your code
And the errors
Did anyone notice he made already atleast over 3 threads about this topic? Literally JUST asking for code?
Dude, stop coming to Facepunch asking for only code. I know this might help, but at least try before you keep making posts. [IMG]https://i.gyazo.com/3e87a7f8babbd6b25ac02efdc7c1c0bc.png[/IMG] [IMG]https://i.gyazo.com/3b63e299db69d63efef7c7cad1fb2cfb.png[/IMG]
Sorry, you need to Log In to post a reply to this thread.