I am looking for ideas how to make a vech "get infected" actualy just change side to teh infected side when they go adjacent to the blight. If u were playing and one of your linx drove right up to the blight it would be "infected" and change to the AI controling the infected vechs thus turning on u like in eden mission 4. i was wondering if anyone could help me set up some code for this.
Some code Hacker gave me.. may be of some help
LOCATION loc = yourUnit.Location();
GameMap::GetTile(LOCATION(loc.x-1, loc.y-1));
GameMap::GetTile(LOCATION(loc.x, loc.y-1));
GameMap::GetTile(LOCATION(loc.x+1, loc.y-1));
GameMap::GetTile(LOCATION(loc.x-1, loc.y));
GameMap::GetTile(LOCATION(loc.x+1, loc.y));
GameMap::GetTile(LOCATION(loc.x-1, loc.y+1));
GameMap::GetTile(LOCATION(loc.x, loc.y+1));
GameMap::GetTile(LOCATION(loc.x+1, loc.y+1));
Also what does the .DoInfect() do to a vech?