Help understanding claiming land, how to "capture"?
Asked by
6 years ago Edited 6 years ago
Currently in my game, players can use a tool to place pillars, once 2 pillars are placed it creates a wall. The idea is to claim land by walling off portions of the land.
I'm trying to figure out a way that once a completed area is walled in it would "Claim" that land for the player that built the walls. "Claim" going as far as just getting a numerical value for the amount of land you walled in.
Any articles/docs or just thoughts on this would be helpful.
Thanks for any help!
EDIT: Wondering if a grid system like this would be too laggy because of creating so many parts
01 | local base = game.Workspace.Baseplate |
04 | local model = Instance.new( "Model" , game.Workspace) |
09 | local part = Instance.new( "Part" , model) |
10 | part.Name = i.. ", " ..j |
12 | part.Size = Vector 3. new( 8 , 0.25 , 8 ) |
13 | part.Position = Vector 3. new(i* 8 , 0.125 , j* 8 ) |