
Set the amount of units the capo can handle from the start If tPlayerinfo.ai = true then - SETUP FOR AI PLAYERS. Playerstart_x, playerstart_y = x,y - Starting pointsĬapo = setup(player, playerstart_x, playerstart_y) Playerstart_x, playerstart_y = building.buildingtoworld(safehouse,5,5) - outside safehouse Soldierstart_x, soldierstart_y = building.buildingtoworld(safehouse,5,10) Local residential = GetNearestAvaliableResidential(tx,ty)īuildingcmd.buildingbuy(safehouse, player) Local safehouse = GetNearestAvaliableSafehouse(tx,ty) Get the nearest safehouse, and remove that from the global list

Local tPlayerinfo = family.getplayerinfo(player) Local x, y = map.getnearestaccessible(tx,ty) Local ty = tStartingPositions - z map coord Local tx = tStartingPositions - x map coord Local idx = GetPositionIdx() * 4 - Get random unique starting position offset ) Mm.cprint("Only some players has both an residential and safehouses") If table.getn(tResidentials)

Get a list of all residentials and safehouses in the mapĬountStartPos = table.getn(tStartingPositions) / 4 - Count staring positions (4 values pr. TStartingPositions = map.getmappoints("StartingPosition") - Get starting positions. TPlayers = family.getfamilies() - Get list of all players If chartype="MARIO" or chartype="MARIO1" or chartype="MARIO2" thenĬtweapon(capo, 17) - semihandgunĬtweapon(capo, 3) - handgun Set the correct starting weapon for the selected heroĬtweapon(capo, 19) -semihandgun2x Newdist=((bx-tx)*(bx-tx))+((by-ty)*(by-ty))Ĭapo = world.activatecharacter(family.getplayerinfo(player).type)Ĭtname(capo, family.getplayerinfo(player).name)

Find nearest safehouse and remove from the global listįunction GetNearestAvaliableSafehouse(tx,ty)īx, by = building.buildingtoworld(value,5,5) Local idx = math.floor(fw.rand() * countStartPos) Returns a random starting position which is not taken Here is one of the scripts that came with the editor. Is there any way to figure out what the lua commands and stuff they use for the game are? when you make a map you are able to link it up with a lua script, but i just don't know what to do with that. I figured lua would have what im looking for but i cant find a way to see whats inside. Yet not all of them have something to view.
#Gangland pc full game full version#
So, i have installed the full version of game extractor and attempted to view a few of the archives but some are empty of files? Well, i feel like a dope! xD thanks, though.
