ziiip 1 Posted August 31, 2010 Hey guys, I'm wirking on a mission in which you first conquer a town and after that, you can choose to either attack town x with the Czeh force or town y with the British force. So, how can I change the player's unit? Share this post Link to post Share on other sites
ziiip 1 Posted June 17, 2011 Bump. :D Someone has to know. There was an official mission for ArmA1 in which you could pick wether to play as SF or regular and it happened in the same mission. Share this post Link to post Share on other sites
dm 9 Posted June 17, 2011 can you invoke team switch via script? I would imagine thats how they did it... Share this post Link to post Share on other sites
messiahua 0 Posted June 17, 2011 You can simply create new unit, invoke selectPlayer, delete old unit. Share this post Link to post Share on other sites
kylania 568 Posted June 17, 2011 I made a demo of changing clothes once, but it wasn't working in MP. However, War In Takistan has MP working model changes, might want to poke around that to see how they did it. Share this post Link to post Share on other sites
ziiip 1 Posted June 17, 2011 (edited) Thanks dudes! :D It's only SP. I'll try that mission Kylania. ^^ Edited June 17, 2011 by ziiip Share this post Link to post Share on other sites
ziiip 1 Posted June 19, 2011 (edited) Furthermore, is it possible to make an another unit playable via trigger? I want the player to start as a machine gunner, but due to lousy AI, I want to allow teamswitching to an RPG specialistm but not before it is necessary. I know that with selectplayer, you can switch back and forth, but I dont want to suddenly change the controlled soldier, what I want is a hint that "you can now change" and then you can bring tup the team switch menu. Edited June 19, 2011 by ziiip Share this post Link to post Share on other sites
demonized 20 Posted June 19, 2011 Furthermore, is it possible to make an another unit playable via trigger? I want the player to start as a machine gunner, but due to lousy AI, I want to allow teamswitching to an RPG specialistm but not before it is necessary. you are looking for this command: addSwitchableUnit Share this post Link to post Share on other sites
ziiip 1 Posted June 27, 2011 Great, almost there. :D The last problem I have is that the formerly player controlled AI will not return to formation/to duties after teamswitching. Any AI mod out there that addresses this problem? Share this post Link to post Share on other sites
demonized 20 Posted June 27, 2011 try having the leader of the group issue a commandFollow command after the switch. (leader (group _oldUnit)) commandFollow _oldUnit; Share this post Link to post Share on other sites