-HAC-_Liongreek 0 Posted February 21, 2007 ...and, yes, you guessed right. Another noob has decided to make his life difficult, and yours worse by taking up scripting!!! To the point, I've been reading a lot lately on the matter and it seems that all this info is making me dizzy...so, I would like to know if it's possible to designate someone as hostage to be rescued by your team. What parameters should I look into? Also, how can you put an enemy soldier to man a machine gun or a searchlight? You should be hearing from me often on these forum, as I am very excited by the opportunities this game gives you. That is, unless you go crazy on my asking so many questions and do this every time you see me... Thanks for bearing with me guys, good to be here Share this post Link to post Share on other sites
the unknown 0 Posted February 21, 2007 Quote[/b] ]To the point, I've been reading a lot lately on the matter and it seems that all this info is making me dizzy...so, I would like to know if it's possible to designate someone as hostage to be rescued by your team. What parameters should I look into? Well it depents on how you would want to do this. First of all if the hostages is normaly hostile to the enemy example west soldier taken by east troops, then you can use the following codes: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">No legal target: Hostagename setcaptive true Legal target: Hostagename setcaptive false Then put a trigger near the hostages that will activate when the rescue team gets near and use a join waypoint to let the hostage join the group of rescuers. To prevent a human hostage to move away you could use setcaptive false to get him shot if he walks away. Quote[/b] ]Also, how can you put an enemy soldier to man a machine gun or a searchlight? Soldiername moveingunner MGname Soldiername assignasgunner MGname O and btw I am used to these questions :P The Unknown Share this post Link to post Share on other sites
-HAC-_Liongreek 0 Posted February 21, 2007 All right! I suppose you have been asked these questions a dozen times, and you STILL find the time to address them! Thanks man, really appreciate it!! Â Another small one though. If I set an enemy soldier to be the hostage using the above commands, will he retain his weapons and attitude? Meaning, will he start shooting at his supposed captors, even though he is a prisoner? Share this post Link to post Share on other sites
HulkingUnicorn 0 Posted February 21, 2007 If you place a standard soldier (like rifleman or pilot), you will have to remove his weapons to make him a 'safe' hostage (especially if a player is the hostage). You can put <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">removeallweapons this in the units init line, or <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">removeallweapons unitname if you're doing it in a script. I guess it looks a bit odd when a hostage is standing passively around carrying an AK Share this post Link to post Share on other sites
Deadeye 1 Posted February 21, 2007 this setbehaviour "careless" will set him at ease. He won't target anyone, but he's not also more laid back and takes his time while moving Share this post Link to post Share on other sites
-HAC-_Liongreek 0 Posted February 21, 2007 That will do it! Thanks guys! Share this post Link to post Share on other sites
james (J) 0 Posted March 12, 2007 yo i too am a noob to this scripting stuff. so i was just wandaring wher do we put the scripting? Share this post Link to post Share on other sites
ck-claw 1 Posted March 12, 2007 in the initilization (init) field-when u select a unit etc Share this post Link to post Share on other sites
james (J) 0 Posted March 12, 2007 thanks veary much Share this post Link to post Share on other sites