• Capture a point.
    2 replies, posted
Hey. Can anybody help me make a capture point? What i need help to: -It needs to be an Ent so I can place it in a Map. -when it is captured it needs to run this: [lua] timer.Create( "capture", 60, 0, function() GiveGold() end ) [/lua] -when i player is in a "range" it is being captured -if another player enters and the first player isn’t there, he can capture. -if the first player is there he needs to kill the first player before he can capture it. I know it’s a lot, but can anybody help me? Thanks -Trivkz
how to find if players are in x units away [lua] for k,v in pairs(ents.FindInSphere( self:GetPos(), [b]size around[/b] )) do --I think I wrote the getpos wrong if(v:IsPlayer)then --it's a player, so start capturing end end [/lua]
[QUOTE=cas97;17905387]how to find if players are in x units away [lua] for k,v in pairs(ents.FindInSphere( self:GetPos(), [b]size around[/b] )) do --I think I wrote the getpos wrong if(v:IsPlayer)then --it's a player, so start capturing end end [/lua][/QUOTE] Hmm, one part of it done :D Thanks For the Capture part chould i add a timer and when the timer is 30sec, the "Building" goes to the owner? Can anybody help with that?
Sorry, you need to Log In to post a reply to this thread.