Jump to content
Sign in to follow this  
Casto

Death to the man who crosses the line

Recommended Posts

If you leave the area in a deathmatch game, you ll die.

how can i make that in my own deathmatch map???

thnx,

Casto

Share this post


Link to post
Share on other sites

Create a trigger, with a range of how big you want the

area to be limited (let's say 100/100).

Activation: anybody/present/once

put a name into it's name_field (let's say triggerA)

condition: this

On deactivation: var1=true

Create another trigger close to triggerA, with a bigger range

than triggerA (let's say: 150/150)

Activation: anybody/present/repeatedly

Condition: var1

put a name into it's name_field (let's say triggerB)

OnActivation:

killvar=list this-list triggerA; "_x setdammage 1" foreach list killvar; var1=false

Now you need a third trigger:

No range needs to be specified (0/0)

Activation: none

condition: true

OnActivation: var1=true

--------------------------

This should do the job for you.

btw - I'm at work right now, and can't use OFP there,

so if there's any mistake above, sorry for that, but i'll

check it out again, when i arrive home at my castle biggrin.gif

~S~ CD

Share this post


Link to post
Share on other sites

Hey CD, why all that trouble of 3 triggers instead of only 1?

when I made my first TDM, I surrounded the area I wanted to with 4 or more triggers ( the ammount needed to make a perimiter ) then in each one I set like this

Size: ( how much U desire )

ACT: anybody / present / repeated

ON ACT: (thislist select 0) setdammage 1

that should do it, so everyone who gets in that trigger falls down dead smile.gif

Good Luck

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 </td></tr><tr><td id="QUOTE">Hey CD, why all that trouble of 3 triggers instead of only 1?

<span id='postcolor'>

Well Rambo,

He wants to setup an area, which you must not leave.

The way you suggested, i also used in my first TDM,

but it still is a way of creating forbidden areas.

And trigger number 3 in my case is only a kind of initialisation trigger.

You can use this trigger aswell for all other stuff, which you

want to activate from the start of your misison.

btw - the way, i suggested is the way, BIS is using to setup

limited areas.

~S~ CD

Share this post


Link to post
Share on other sites

it gives a error here:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">killvar=list this-|#|list triggerA; "_x setdammage 1" foreach list killvar; var1=false: error type bool, expect object<span id='postcolor'>

i tryed to remove the "-" here </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">this-|#|list <span id='postcolor'> becuas of the "|#|",but then it says unknown operator triggerA.

plzz help.

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 </td></tr><tr><td id="QUOTE">it gives a error here:

Code Sample

killvar=list this-|#|list triggerA; "_x setdammage 1" foreach list killvar; var1=false: error type bool, expect object

i tryed to remove the "-" here <span id='postcolor'>

OK - as i already said, i've been at work when posting this,

so the syntax could have been incorrect.

try this instead:

killvar = thislist - list triggerA; "_x setdammage 1" foreach killvar; var1=false

Should work now wink.gif

Share this post


Link to post
Share on other sites

it didnt work sad.gif  

maybe it becaus of resistance. confused.gif

perheps i should give you the mission to see whats wrong

Share this post


Link to post
Share on other sites

hmm - it works for me (i'm already running resistance).

OK just post, what you have done, and how you did it.

Make this step by step, if we don't find what's wrong, you still

can send me your misison.

~S~ CD

Share this post


Link to post
Share on other sites

Hello i did exactly what u told me to Chris, yeah i know u werent talking to me lol, but i followed your advice anyway, but nothing happens when they croos the line. I think it must have something to do with you Init line. Hope than ne1 can help me on this

Cheers

Noodles

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  

×