PDA

View Full Version : Back with more questions...


apple23
12-31-2007, 02:15 PM
So once again, i'm having a little problem finding the right script for my intended action. In a multiplayer/skirmish environment, how do i create a unit (like magically/created out of nowhere) under the control of one of the 4 players in the game? Any help or good suggestions would be greatly appreciated!

Me Myself & Pi
01-05-2008, 10:30 PM
This isn't possible with other human players in a multiplayer game. It will only work with the Host & skirmish players. The reason why is the action to be used requires a player to which the unit spawns upon. Since there are no players that refer to the other human players in a game, it's not possible.

Use the action, "Unit\Spawn\Spawn -- unnamed unit on a team at a waypoint." in a script. In it, choose the unit type to be spawned, the player to own it, then the waypoint for it to spawn at. Use <This Player's Enemy> to give it to the Host. Be sure to keep this script in the PlyrCivilian folder. For the skirmish players, you need to do something else, you need to import the skirmish scripts into your map. (Let me know if you don't know how to do that.) Then copy the script made for the host into each of skirmish players' folders & choose <This Player> for all of the them. (<This Player> refers to the player at which the script is in. So if it's in the SkirmishAmerica folder, <This Player> will really be the SkirmishAmerica player. Not sure why <This Player's Enemy> refers to the Host when put in the PlyrCivilian folder, I just know it works.)