Results 1 to 5 of 5

Thread: Anti-Spawncamp

  1. #1

    Anti-Spawncamp

    Hi I have a PVP mission with the basic kill a player who enters the zone for anti base camping. However it kills absolutely everything that enters the area. Including the jets and helicopters flying high over it. So they randomly explode whenever they accidently break airspace. Its kinda funny but pisses the heck out of the pilots. So my question is how do I put a timer on the set damage thing. Or how do I make it for ground units only?


    Current opfor defense
    call {if (count thislist > 0) then {{if (alive _x) then {_x setDamage 1; hint "Destroying BluFor unit that approached BluFor base!";}} forEach thislist}; false}

    Current Blufor defense
    call {if (count thislist > 0) then {{if (alive _x) then {_x setDamage 1;}} forEach thislist};false}

  2. #2
    You can try this, I'll let you alter the other one


    Current Blufor defense
    call {if (count thislist > 0) then {{if (alive _x and (getpos _x select 2) < 2 ) then {_x setDamage 1;}} forEach thislist}};false}
    Last edited by F2k Sel; Jun 29 2012 at 21:31.

  3. #3
    Quote Originally Posted by F2k Sel View Post
    You can try this, I'll let you alter the other one


    Current Blufor defense
    call {if (count thislist > 0) then {{if (alive _x and (getpos _x select 2) < 2 ) then {_x setDamage 1;}} forEach thislist}};false}
    this didnt work for some reason

  4. #4
    If it's players only, you could just have the trigger deal with the local player like so.
    Condition: vehicle player in thisList and getPos vehicle player select 2 < 3
    On act: vehicle player setDamage 1;player setDamage 1
    Last edited by Celery; Jun 30 2012 at 23:44.

  5. #5
    I had a ) in the wrong place, but I also noticed that crew would sometimes survive this will get them. If there are no AI then the above is the cleaner way.

    call {if (count thislist > 0) then {{if (alive _x and (getpos _x select 2 < 2) ) then {{_x setdamage 1;} forEach (crew _x);_x setdamage 1;} forEach thislist;} forEach thislist};false}

Similar Threads

  1. Anti cheat
    By Silver Surfer in forum ARMA 2 & OA - GENERAL
    Replies: 3
    Last Post: Dec 5 2007, 23:56
  2. Anti-cheat?
    By Garbol in forum ARMA - MULTIPLAYER
    Replies: 2
    Last Post: Jan 20 2007, 12:32
  3. Anti- English
    By Bordoy in forum OFFTOPIC
    Replies: 69
    Last Post: Jun 21 2004, 03:12
  4. New anti-tk and anti-rk fuction for ofp
    By InqWiper in forum MULTIPLAYER
    Replies: 26
    Last Post: Feb 5 2003, 00:09
  5. Anti us
    By stealth squirrel in forum OFFTOPIC
    Replies: 46
    Last Post: Feb 22 2002, 13:38

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •