3 Questions (2 TTT Based / 1 Not)

I am a little

http://www.facepunch.com/fp/ratings/box.png

at Lua.

I have 3 questions.

TTT:

  1. I have custom weapons (regular ones which just spawn.) but they wont spawn on some maps… How can I make my custom weapons spawn on maps like Lost Temple?

  2. How would I make one grenade split into many grenades? Like a cluster bomb.

OTHER:

  1. How did you learn Lua?

@ Other

[lua]
timer.Simple(5, function() for i = 1, 4 do
local exp = ents.Create(“my_explosive”)
exp:SetPos(self:GetPos() + Vector(math.random(-1,1), 1, math.random(-1,1))
exp:Spawn()
exp:SetVelocity(Vector(math.random(-50,50), math.random(-50,50), math.random(0,50))
end
end)
[/lua]

  1. there are map files in ‘content\maps’, you can edit them in there if you have the conver ‘ttt_use_weapon_spawn_scripts’ set to 1