Posted by: ddewar10 - Tuesday, May 31, 2011 8:36:50 AM
My brother and I just started using the world builder, and are trying to make a map that is infantry specific. We were trying to start each team in a multiplayer map with a bunch of infantry and a barracks. Is this at all possible? Ever time we tried the units always came up as civilian units. Any Advise/tips/tricks?
Thanks!
Posted by: BR-Alexandre - Tuesday, May 31, 2011 9:29:56 AM
it will take a lot of work but you have to make scripts for every player type (faction) in every starting position to spawn the units and buildings you want the player to have.
Posted by: i^love^mixery - Tuesday, May 31, 2011 8:45:24 PM
it is possible but it takes a lot of scripts.
you have to transfer the units to the related players manually with scripting.
Posted by: ddewar10 - Tuesday, May 31, 2011 10:00:38 PM
Is there a way to maybe script a barracks so it can only produce one type of unit or anything like that? Maybe make it so you can only produce Humvees and infantry?
Posted by: BR-Alexandre - Wednesday, June 1, 2011 9:44:49 AM
hmmm you can try replace normal barracks for eveny faction with a different one and then remove/add the commandbuttons for the structure to do only what you want it to
Posted by: ddewar10 - Wednesday, June 1, 2011 4:22:54 PM
Alright, sorry for all the questions, but now my scripting doesn't seem to be working correctly. We are trying to do a multiplayer map with 2 starting positions. Any advice on what to name the players? or Do we use the skimish team names? or Just tips for scripting for multiplayer in general? Sorry again, it just doesn't seem to be working as expected.
Posted by: i^love^mixery - Friday, June 3, 2011 1:55:11 PM
you have to place the units on the map and then you give them a NAME.
then you go to scripting menu and then you transfer named units to the players with the following script:
**If**
true
**then**
Player -> Transfer -> transfer a specific unit to the control of a player
for unit name you select the names of the unit that you have placed on your map.
for player names you use player0 - player7.
player0 = host of the game
player1 = guy in 2nd game slot
player2 = guy in 3rd game slot
player3 = guy in 4th game slot
player4 = guy in 5th game slot
player5 = guy in 6th game slot
player6 = guy in 7th game slot
player7 = guy in 8th game slot
you see that this are unspecific names and its pretty much random if you will get the right units transfered to the right player without further scripting.
you have to check where which player is and that takes a lot of scripts.