Results 1 to 8 of 8

Thread: setcaptive true = shoot people in the face without consequences

  1. #1

    Unhappy setcaptive true = shoot people in the face without consequences

    So here's the problem, I'm making a stealth mission and the team is composed by 2 indipendents, enemy of the opfor, and 1 civilian which acts as a "disguised scout" for the team. So, when I put the civilian in the indipendent team, obviously, the civ get shot, so I've put on his inizialization "c1 setcaptive true;" this way the civilian (c1) doesn't get shot and everything goes smooth and well... until the civ gets a weapon. The civ can shoot everyone without the opfor even considering for a second that he might be an enemy or just an idiot that should die, any ideas of how to make this work? The civ should not go near some places, that's when the trigger "c1 setcaptive false;" activates and the guy is shot to death, but what if he takes a weapon? What if he shoots? Is there a way for the opfor to treat him as an enemy if he shoots someone, or better, just take a gun? If not, is there a way to keep the civ from getting weapons from dead soldiers?

  2. #2
    Master Gunnery Sergeant 5133p39's Avatar
    Join Date
    Feb 2 2004
    Location
    Czech Republic
    Posts
    1,383
    deleted
    Last edited by 5133p39; Aug 12 2012 at 19:17.
    MSI P55-GD65 | Core i5 750 @ 2.67GHz | 4GB DDR3 | ATI HD 5970 (Asus EAH5970​/G​/2DIS​/2GD5) | OCZ Revo 120GB PCIe SSD | 2x OCZ Vertex 4 120GB |
    Windows 7 64bit Home Premium | Catalysts 13.1 | ArmA2 OA 1.62.0.101480 (beta) +BAF +PMC +ACR | ArmA2 1.11.0.86734 | ArmA 1.18.0.5281 | OFP 1.0.0.96

    Be smart, use Sprocket!

  3. #3
    Could you be more specific?

  4. #4
    bump, I need help with this please?

  5. #5
    Put a trigger that fires if his primaryWeapon is no longer null.

  6. #6
    Thank you! I will search how to do that immediately
    EDIT: Oh and in the mean time, feel free to explain it anyway lol

  7. #7
    hi,

    Try with addEventHandler fired and removeEventHandler

    You should have something like this:

    Spy civilian init field
    Code:
    this setCaptive true; this addEventHandler ["fired","_this exec {fired.sqs}"]
    fired.sqs
    Code:
    _u=_this select 0
    
    _u removeEventHandler ["fired",0]
    _u setCaptive false
    
    exit
    Nobody will fire on the civilian but as soon as he will fire, enemies will open up on him. Not tested but it should work.

    cya.

    Nikiller.
    [LOL] ofp/ArmA clan since 2004.
    No Respawns, No Crosshairs, No Muppets.
    Want a good ofp/ArmA2 coop? Visit the [LOL] clan homepage | ofp [LOL] addons pack | ArmA2 [LOL] addons pack

    WW4mod25 sound replacement mod v1.1 | Nikiller's scripts pack

  8. #8
    You can also just use this: http://www.ofpec.com/COMREF/index.ph...d=163&game=All
    in a trigger, and then just use setcaptive false if it returns true.

Similar Threads

  1. setcaptive true and specific area's
    By enforcer4100 in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 4
    Last Post: Mar 18 2012, 10:04
  2. Automatic MG setcaptive true when "no gunner"
    By SKNAM in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 0
    Last Post: Mar 2 2010, 12:35
  3. SetCaptive true not always working
    By Balschoiw in forum ARMA - MISSION EDITING & SCRIPTING
    Replies: 10
    Last Post: Mar 9 2007, 16:46
  4. setcaptive true for whole east side
    By ruff in forum OFP : MISSION EDITING & SCRIPTING
    Replies: 11
    Last Post: Jun 3 2005, 19:05
  5. "setcaptive true" after "setcaptive false"
    By ColdShine in forum OFP : MISSION EDITING & SCRIPTING
    Replies: 6
    Last Post: Jul 10 2003, 14:55

Posting Permissions

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