Falken 0 Posted December 14, 2006 Hi guys, I've made a co-op mission where you fly in via Blackhawk to an enemy town, neutralise the enemy and return to base (where the mission will end). However it's very possible that the player controlled blackhawk will either crash or be shot down, such is life and all that. In the event of this you can radio in for a new (AI controlled) blackhawk to come pick you up. At the moment I have the blackhawk pilot join the team leader's squad, giving him full control over what happens, however I'd like to take that out of the player's hands and let the computer handle that stuff. I've set up the blackhawk to fly in and land on an invisible H with a "load" waypoint, and the player team will then have a "Get in" waypoint synched with eachother. Unfotunately the blackhawk hovers until the player gives to give the "GET IN, THAT BLACKHAWK" rather than having it happen automatically. Is there any way that I can force the team leader (whoever that might be at the time) to give an order for all players to board the blackhawk rather than having to do it yourself? edit: I was actually thinking that I could have the helo pilot take command of the squad and order everyone aboard, or somehow get it scripted in for all the guys left in my team to just perform the "board" action (if they're AI controlled that is). Also, is it possible to have the helo not take off again until all remaining "alpha" (as in alpha=groupthis) members are aboard the helo? Share this post Link to post Share on other sites
chris330 0 Posted December 26, 2006 However it's very possible that the player controlled blackhawk will either crash or be shot down, such is life and all that. In the event of this you can radio in for a new (AI controlled) blackhawk to come pick you up. Nice, realistic idea. At the moment I have the blackhawk pilot join the team leader's squad, giving him full control over what happens, however I'd like to take that out of the player's hands and let the computer handle that stuff. Far better, and much more reliable way of doing it. Is there any way that I can force the team leader (whoever that might be at the time) to give an order for all players to board the blackhawk rather than having to do it yourself? I believe so. I think it needs an assignas and an ordergetin command run on them. If you wanted to you could break up the entire group into serperate individuals and just give them the order individually. Would be absolutely no problems whatsoever this way, although if you wanted to group them again later you'd have to remember to do so once they were all aboard. I was actually thinking that I could have the helo pilot take command of the squad and order everyone aboard A bit risky. The method I describe above is better. Also, is it possible to have the helo not take off again until all remaining "alpha" (as in alpha=groupthis) members are aboard the helo? Well easy. A simple checkin script can do this. Drop me a line if you'd like a simple demo mission making. Share this post Link to post Share on other sites
GunnerySargeantbeckett 0 Posted December 29, 2006 A bit risky. The method I describe above is better. I Agree The Pilot Can Die And The Helo Can be Destroyed Then Ghave To Wait Longer And So On Share this post Link to post Share on other sites
chris330 0 Posted December 29, 2006 Indeed, it's easier just to have them act independently. Share this post Link to post Share on other sites
The-Architect 0 Posted January 2, 2007 Get a chopper and then give it a name. In this case evac. Give it a waypoint to your extraction point. LOAD I think. Then a waypoint to home. On activation put, <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">evac land "land"; [evac] exec "chopperwait.sqs"; now get an .sqs file and put this in it. Call it ChopperWait.sqs <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">;BEGIN SCRIPT _chopper = _this select 0 _chopper LockWP true ; loop until all of the players squad have got in #for1 ~0.5 ? (GetPos _chopper select 2) > 5 : _chopper land "GET IN" ; make the chopper wait until the whole squad is in _lead = leader player _playerArr = units group _lead _num = count _playerArr _incount = 0 _tmp = 0 #for2 ? vehicle (_playerArr select _tmp) == _chopper : _incount = _incount + 1 ? _tmp < (_num - 1) : _tmp = _tmp + 1; goto "for2" ? _incount != _num : goto "for1" ; the chopper will move off on it's waypoints _chopper LockWP false ; END SCRIPT If you don't know how to get an sqs file, DL a mission and unpbo it. If it's a good mission it'll have an sqs file. Just replace all the stuff in it and call it Chopperwait.sqs Share this post Link to post Share on other sites