SWEFIDDE 0 Posted March 17, 2008 hi there! i am making a mission where there is a hostage! and i whant the hostage to join my group or my friends group when we are playing in multiplayer! and how to make this by a trigger? plz help me! Share this post Link to post Share on other sites
zonekiller 175 Posted March 18, 2008 i hope this helps i use this i have 4 res officers and they join the group of the unit that finds them <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> [c1] join group (thislist select 0); [c2] join group (thislist select 0); [c3] join group (thislist select 0); [c4] join group (thislist select 0);wp11 = 1; just put this in your act field of your trigger and west present if your side west and you captives are named c1 , c2  ect i also have a script that makes the trigger follow the captives  so they can walk around the city. i set it for 10 mtrs round and call the trigger civ1 in the name field then set the waypoints so the captives randomly walk around the city in the leader of the captives i add this to the init field <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> civgrp = group this; removeAllWeapons this; this setCaptive true; [this] execVM "officers.sqf" in the officers.sqf script <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _civleader = _this select 0; sleep 2; _wPos = Position _civleader; wp11 = 0; sleep 2; while {wp11 == 0} do { if !(alive _civleader) then {[_civleader] join grpnull; _civleader = leader civgrp}; sleep 1; _wPos = Position _civleader; civ1 setpos _wpos; sleep 1; }; Michael Share this post Link to post Share on other sites
SWEFIDDE 0 Posted March 18, 2008 YE thanks alot!!! it work very nice! now the trigger will make the captive join my group when the trigger is for me but do you know if the trigger can be actived by any west soldiers? so if my friends group come to the hostage before me the hostage will join his squad? thx alot any way!! Share this post Link to post Share on other sites
zonekiller 175 Posted March 18, 2008 YE thanks alot!!! it work very nice! now the trigger will make the captive join my group when the trigger is for me but do you know if the trigger can be actived by any west soldiers? so if my friends group come to the hostage before me the hostage will join his squad?thx alot any way!! your captive will join the group of first west that finds him player or AI Share this post Link to post Share on other sites
SWEFIDDE 0 Posted March 19, 2008 hi!!! SHITTT now it working i moste done something wrong!!! thx you very mutch!!! Share this post Link to post Share on other sites