Shadow_Spyder 0 Posted July 5, 2007 I know this sounds like it should be easy, but I am having a brain fart. I've searched the forums, and scanned through numerous of other missions I unPBO'ed and I just cant seem to figure this out. I have a hostage that I want to rescue. When you kill so n so, I want the hostage to come out of hostage state (got this working) and then I would like to add this hostage to my players group (cant figure this part out). Can anyone help me out here? Thanks. Share this post Link to post Share on other sites
crashdome 3 Posted July 5, 2007 <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">[unit] join group player or <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">[unit] joinSilent group player The first announces it over the radio... the second is better for captures Share this post Link to post Share on other sites
Shadow_Spyder 0 Posted July 5, 2007 Now, Do I leave the "player" or do I change that to a units name? Just curious because if this is a MP mission and there are multiple players who might be in different groups.... Share this post Link to post Share on other sites
ManDay 0 Posted July 5, 2007 CrashDome just answered your question... [...] and then I would like to add this hostage to my players group [...] Why did you ask that if you assume multiple players?! Anyway, if you want it to join a certain group than just put in the group instead of "group player". We cannot answer your question any further a.t.m. unless you describe your actual situation a bit more detailled. Good guess: You have different players in different groups and you want the hostage to join the group who rescued him? Am I right? Share this post Link to post Share on other sites
crashdome 3 Posted July 5, 2007 Now, Do I leave the "player" or do I change that to a units name? Just curious because if this is a MP mission and there are multiple players who might be in different groups.... No, no need to change anything. In this situation, 'player' is a reserved variable that in MP, means something different on each machine. If Player A executes the script, then 'player' means 'join Player A'. Share this post Link to post Share on other sites
Shadow_Spyder 0 Posted July 5, 2007 CrashDome just answered your question...[...] and then I would like to add this hostage to my players group [...] Why did you ask that if you assume multiple players?! Anyway, if you want it to join a certain group than just put in the group instead of "group player". We cannot answer your question any further a.t.m. unless you describe your actual situation a bit more detailled. Good guess: You have different players in different groups and you want the hostage to join the group who rescued him? Am I right? CrashDome did answer my question. Unfortunately my knowledge of mission making and scrips and commands ect is not very good. I looked at what he said, and then thought to myself, "ok, well if i've got a MP mission going on and there is my group of infantry, and then that group of pilots, and then that group of whoever and there all human "players" how would the script know which "player" i wanted the hostage to join? I was just asking a simple question for a misunderstanding I had. No need to get all feisty like that man. Your question at the end is correct. There are multiple groups with multiple players, and I want the hostage to join the group who rescues him. Quote[/b] ]No, no need to change anything.In this situation, 'player' is a reserved variable that in MP, means something different on each machine. If Player A executes the script, then 'player' means 'join Player A'. Thanks for clearing that up CrashDome. That clears up my confusion. Thanks again. Share this post Link to post Share on other sites