Jump to content
Sign in to follow this  
nedal

Safezones deathzones

Recommended Posts

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

I dont really understand you prodlem sad_o.gif

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

Share this post


Link to post
Share on other sites

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

mission file here

Share this post


Link to post
Share on other sites

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

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

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

Share this post


Link to post
Share on other sites

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

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

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

?!(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

It would only exit the script, local.

The script will continue on those machines, where there's

the player still alive  wink_o.gif

: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

I solved the problem last night biggrin_o.gifbiggrin_o.gif

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

smile_o.gifbiggrin_o.gifsmile_o.gifbiggrin_o.gifsmile_o.gif

but thank you anyway guys :-)

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  

×