Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Kill player/AI within the zone?

  1. #1

    Kill player/AI within the zone?

    Hi
    I am wondering how to kill person of a certain side who step in a zone defined by a trigger?

    Trying to make a space impermeable to enemy for respawning and containing fighting zone

    P.S. How the "Seize by ..." stuff work. I used seize by Blufor as winning condition, but with enemy number obviously outnumber us, I still win. Why?

  2. #2
    Warrant Officer Demonized's Avatar
    Join Date
    Nov 16 2010
    Location
    Back from afk 2013
    Posts
    2,614
    make a trigger with side you want to kill, present repeated.
    on act:
    {_x setDammage 1} foreach thisList

    will kill all units of the side spcified when they enter the trigger area.

    for the seized by i dont know, never used it.
    My scripts:
    Spoiler:

    what to do when posting any kind of code dammit!!

    Any new mission editor or scripter in Arma2 should have read Mr Murrays Editing Guide Deluxe at least once, it still applies for A2 even though it was made for Armed Assault.

  3. #3
    Sergeant
    Join Date
    Jul 3 2009
    Location
    Kowloon, HK
    Posts
    117
    Author of the Thread
    Thank you =)

    ---------- Post added at 18:18 ---------- Previous post was at 18:15 ----------

    BTW, can I define only human to be killed?

  4. #4
    Code:
    this and player in thislist

  5. #5
    Warrant Officer Demonized's Avatar
    Join Date
    Nov 16 2010
    Location
    Back from afk 2013
    Posts
    2,614
    use condition Egosa-U said.
    and in onact: {if (_x == player) then {_x setDammage 1}} foreach thisList

    now trigger will only fire when a player is present, and will only kill players not AI
    Last edited by Demonized; Apr 6 2011 at 11:38. Reason: edited text errors.

  6. #6
    Sergeant
    Join Date
    Jul 3 2009
    Location
    Kowloon, HK
    Posts
    117
    Author of the Thread
    thanks!

  7. #7
    How do you make a simple trigger to kill units that enter the area ? I was looking for it and cannot figure it out, or is this it ? If so i can't get it to work. I put this into the on act field of the trigger " {if (_x == player) then {_x setDammage 1}} foreach thisList" Is this wrong ?
    "When you temper rises, lower your fists. When your fists rise lower your temper...

  8. #8
    Lol, I had asked this like 2 months ago, and i think demonized said the same thing, hmm me thinks one should search before posting, lol Yoda

    Hosting Missions for Invasion-1944, Iron Front: Liberation 1944, & Hell in the Pacific

    WarMod Series - Massive Addon & Mod Customizable Compilation Mods for Arma1, Arma2, & Arma2CO
    WarMod | A2WarMod |A2WarModACE | COWarMod | COWarModACE | COWarModI44 |COSLX

  9. #9
    Ok sorry i've got this working now, but is there anyway to make exceptions to this rule ?

    EDIT: Or is there a way to make units possibly spawn with names then create the list of names that will be killed by the trigger leaving everything else exempt ?

    Thanks
    Dan

  10. #10
    Warrant Officer Demonized's Avatar
    Join Date
    Nov 16 2010
    Location
    Back from afk 2013
    Posts
    2,614
    Quote Originally Posted by steelblood View Post
    Ok sorry i've got this working now, but is there anyway to make exceptions to this rule ?

    EDIT: Or is there a way to make units possibly spawn with names then create the list of names that will be killed by the trigger leaving everything else exempt ?

    Thanks
    Dan
    you can for example add any unit wich is "allowed" into a global array on creation:Spoiler:
    and so on and so forth-

Page 1 of 2 12 LastLast

Posting Permissions

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