Jump to content
Sign in to follow this  
BlackDeath-CFH

Pow mission?

Recommended Posts

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

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

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

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

</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

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

</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

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. wink.gif

gotta goto bed

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×