| 02-20-2005, 04:35 AM | #1 |
I am using WE Unlimited for a map I am making at the moment and I am using the Hero Selection triggers that come with the Enhancer, I have already put it in my map and it works fine. However my map has 2 teams, each with 5 players and 1 computer player, both sides have their own Hero Selection Area featuring about 14 heroes, what I needed help with was how would I change the trigger so when a team 1 player selects a hero it spawns at their base and when a team 2 hero selects one of their heroes it spawns at their own base? I bet its really simple im just a little confused because at the moment when I select a hero for either team each hero spawns in the same place and I have changed the regions around but it doesnt help because there are 2 of this triggers. Here is a picture of the trigger so you all understand what it looks like and please tell me what is needed to be added to do what I wanted. |
| 02-20-2005, 09:35 AM | #2 |
Guest | A if/then/else statement combined with "player is an ally of player1/player6" should help you |
| 02-20-2005, 09:49 AM | #3 | |
Quote:
Not to sound stupid but can you explain that a bit better, the trigger already uses an if/then/else action. |
| 02-20-2005, 12:46 PM | #4 |
Guest | Insert this somewhere: If the owner of the unit is an ally of player1 then move him to another region |
| 02-20-2005, 12:47 PM | #5 |
Guest | Insert this somewhere: If the owner of the unit is an ally of player1 then move him to a region else move him to another region |
| 02-20-2005, 01:44 PM | #6 |
i agree, you insert a if/then/else statement. going off the top of my head... you do it before the hero creation Code:
if triggering player is ally of player 1 then create 1 unit type of triggering unit for triggering player at the center of FF Spawn <gen> else if triggering player equal to ally of player 6 then create 1 unit type of triggering unit for triggering player at the center of FF Spawn 2<gen> else Do Nothing thats just off the bat... i made it 2 if/then/else's because it adds more accuracy in the selection process. hope that helps... |
