nedal 0 Posted February 8, 2004 i am sure, many of you knows this things deathmatch map with safe zone outer trigger DeadS: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> Seznam = thislist - list HraS; "_x setdammage (getdammage _x) + 0.2" forEach Seznam; Pustit=false inner trigger HraS this i just want to add a message, wich appears for the guy going out of the safe zone, but i dont know how I know the safezone things with rectangles, and know how to make messages appears if a soldiers entres this rectangle, but i dont know how to make a message, with the safezone system with cirlces like above. If i make outer trigger DeadS: Zitat: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> Seznam = thislist - list HraS; "_x setdammage (getdammage _x) + 0.2" forEach Seznam; Pustit=false; hint format ["%1 was killed for entering West Safe Zone", name (thislist select 0)] then the message apears constantly even if i am not out of the safezone, because i am actualy in the trigger circle (killed get everyone in this trigger and not in HraS Trigger) i know how to make a hint message to everyone wich is inside a trigger area, but how can i make a message to everyone wich is NOT inside a trigger area??? I hope you understand my problem can anyone help? Share this post Link to post Share on other sites
j-man 0 Posted February 8, 2004 I dont really understand you prodlem But if you want a message to appear when someone has left the trigger then just put either one of these lines into the "On Deactivation" box of the triger. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">hint "INSERT TEXT HERE" OR <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">TitleText ["INSERT TEXT HERE","Plain"] Hope this help Share this post Link to post Share on other sites
nedal 0 Posted February 8, 2004 I tried this version, if i do it without all other triggers it works, but as soon i try it in my map it does not work anymore. in my map i am moving the safezone and respawn with a script to a random place. It works so far, that the respawn and the safezone are moved to the right place, but i do not get any message for the safezone. mission file here Share this post Link to post Share on other sites
j-man 0 Posted February 8, 2004 There is a trigger at Montignac that is suppost to show a message when someone leaves, right? Just put in the "Condition" box <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">player in thislist ***EDIT*** But keep the message in the "Deactivation" box Share this post Link to post Share on other sites
nedal 0 Posted February 9, 2004 thanks a lot j-man  you helped me a lot !!! i could solve the problem now! actualy i realised a second problem but i could solve it too the second problem was that a script moves at mission start the safezone/message trigers  and the Soldiers randomly to one of random choosen spots, and the result was that everyone got a safezone message at mission start, because he got moved from script to new position, and the safezionemsg trigger was not moved syncronisly. because it is not posible to move al soldiers and the trigger in the same millisecond, i put a public variable at the end of the moving script, and detect in the safeonemsg trigger if the variable is set (means if the script is executet) i have set in Condition field of the safezonemsg trigger: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> (player in thislist) && safezonemsg and now it works fine    now i have to work on the intro and some litle shining things and the dm mission with random startlocations at mission start is finished   Share this post Link to post Share on other sites
nedal 0 Posted February 9, 2004 now i have a new problem with this map the safezone warnings are working fine, if you leave the trigger area you get a warning message (hint in deactivation), but if a enemy shoots you , you get this message too!! I have set also (alive player) in the condition field, but it did not help, you stil get the message  what does (alive player) exactly checks? does it check if the unit in game is stil alive, or does it check if the player is stil on server? you can download the map here can someone help? Share this post Link to post Share on other sites
nedal 0 Posted February 10, 2004 does ? !(alive player): exit in a script check if the player is alive who activatet the trigger wich started the script, or does it chekc if any soldier is alive? please help me, i am cunfused Share this post Link to post Share on other sites
baca85 0 Posted February 10, 2004 ?!(alive player):exit checks if the unit is dead and if so exits the script. Share this post Link to post Share on other sites
Chris Death 0 Posted February 11, 2004 It would only exit the script, local. The script will continue on those machines, where there's the player still alive  :edit - off course only in case the script is running for others too. ~S~ CD Share this post Link to post Share on other sites
nedal 0 Posted February 11, 2004 I solved the problem last night i took the hint out of the trigger and placed it in a external script, wich is startet from the trigger. and in this script i ask for ? !(alive player): exit hint "blabla!!" now it works, the messages just apear now just if you exit the safezone, nad not anymore when you get killed but thank you anyway guys :-) Share this post Link to post Share on other sites