BlackDeath-CFH 1 Posted November 27, 2002 ok, i wanna make a mission where you have to rescue a captured pilot, but i dont know WHERE to start, is there a good script, tutorial, or both on how to do this? Share this post Link to post Share on other sites
ralphwiggum 6 Posted November 27, 2002 for good tutorial, i'd suggest Johan Gustavson's tutorial. available at www.ofpec.com Share this post Link to post Share on other sites
BlackDeath-CFH 1 Posted November 27, 2002 i downloaded Johan Gustavson's JGsTute.zip and edition2.zip from ofpec.com and did not have anything on a hostage or pow script. Share this post Link to post Share on other sites
ralphwiggum 6 Posted November 27, 2002 well, i thought you were really novice in mission editing and sent you there. but if not, here are some things that might help you 1) search for hostage script at www.ofpec.com 2) there is a commnad called 'setcaptive' and it can be used as follows <name of hostage> setcaptive true then, the hostage will not be shot by eitherside. but when you do <name of hostage> setcaptive false depnding on the side, your enemy might kill you hostage or not. Share this post Link to post Share on other sites
BlackDeath-CFH 1 Posted November 27, 2002 hmmm ok, is there a command that will put the captive into my group? like when i go near him, that way i can command him to where he needs to go. Share this post Link to post Share on other sites
Stag 0 Posted November 27, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (FoNeKiLL @ Nov. 26 2002,11:36)</td></tr><tr><td id="QUOTE">hmmm ok, is there a command that will put the captive into my group? like when i go near him, that way i can command him to where he needs to go.<span id='postcolor'> Standard "join", synched with "join and lead" waypoints. Share this post Link to post Share on other sites
ralphwiggum 6 Posted November 27, 2002 or, you can make a trigger with condition: <hostage> distance player <= 1 (distance btw you and hostage is 1 or less) activate: [<hostage>] join player Share this post Link to post Share on other sites
Stag 0 Posted November 27, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (RalphWiggum @ Nov. 26 2002,12:49)</td></tr><tr><td id="QUOTE">or, you can make a trigger with condition: <hostage> distance player <= 1 (distance btw you and hostage is 1 or less) activate: [<hostage>] join player<span id='postcolor'> Interesting. Does that work in multiplay for client players? Using the waypoints method causes CTD in clients. Share this post Link to post Share on other sites
ralphwiggum 6 Posted November 27, 2002 i have no idea. never tested it in MP setting. but if it crashes, then one way to go around would be, 1.make a gamelogic called 'Server' 2.make a trigger condition: <hostage> distance player <= 1 (distance btw you and hostage is 1 or less) activate: [<hostage>] exec "hostagejoin.sqs" where script goes like this </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE"> _hostage = _this select 0 ?(!(local Server)):goto "endd" [_hostage] join leader player goto "endd" #endd exit <span id='postcolor'> i'm pulling this from my brain..never got tested....so don't hold me for this. gotta goto bed Share this post Link to post Share on other sites
Ixian 0 Posted November 30, 2002 I would assume it works in MP Share this post Link to post Share on other sites