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

Thread: Civilians are ignored by blufor

  1. #1
    (Aggh! Title should be Civilians ignored by Opfor)

    Hmm, can't quite think of an appropriate title for this one, so here goes...

    I'd like to have two groups of players entering a Opfor held area. One group, will be the usual Blufor squad. The second group, I'd like to be dressed civilians. At least outwardly so; I want one group of blufor to be dressed as civvies, and be ignored by Opfor until the civvies take up arms. I'm planning on having them in a car, maybe they could have guns in the boot.

    So... I'm not making myself clear here. I want a playable civ who is ignored by Opfor, until the Civ grabs a gun, at which point Opfor should see him as enemy (and ideally, Blufor would see him as friendly at all times)

    Can it be done? I've tried civs getting an M4 and even when he runs around a Opfor camp shooting soldiers, the rest of them still ignore him.

    Any ideas, please?

    Ta.



    Documentation is not a dirty word.
    : TeamSPAFF : PRACS : RKSL : Stella Artois : Creme Eggs : GITS :

  2. #2
    I would also like to know how this could be done.

    im still a noob with this editor, but i have a small idea of how it COULD work. the civilians first are grouped to an enemy of opfor, who is 0 chance of showing up. then setcaptive is true for all of these. then setcaptive is false once they hold a gun. but i have no clue how the game could check for a gun.

    like grouping a trigger to the soldiers that says somethign like if primaryweapon not nothing then setcaptive false. i dont know, just throwing some ideas out there




  3. #3
    Second Lieutenant Tankbuster's Avatar
    Join Date
    Jun 14 2005
    Location
    RPT
    Posts
    4,058
    Author of the Thread
    Quote Originally Posted by (revenicus @ June 09 2007,17:48)
    I would also like to know how this could be done.
    then setcaptive is true for all of these. then setcaptive is false once they hold a gun. but i have no clue how the game could check for a gun.
    That was how I was thinking of going at it, but got stuck there.

    I planned to have the civs in a car, with the guns in the boot.

  4. #4
    For Opfor to treat civilian as enemy, and for civilians to treat Opfor as enemy you need to:

    1. Create a BLUFOR unit with its Probability of Presence set to zero (drag slider all the way to the left)
    2. Group the civilians to the Blufor unit.

    The Blufor unit never appears in game, but the civs will now be considered BLUFOR by all units.

    Set them all captive until the moment you want OPFOR to recognize them as enemies.

    My mission Last Tango in Bagango has opposing factions of civilians (some grouped Blufor, some grouped opfor), if you want to see a working example:

    http://www.ofpec.com/index.p....29354.0

  5. #5
    Second Lieutenant Tankbuster's Avatar
    Join Date
    Jun 14 2005
    Location
    RPT
    Posts
    4,058
    Author of the Thread
    Of course!
    Well done, that man! Does this work for player controlled civs, as well as AI?

  6. #6
    Yes this works for AI and Humans.

    Just make sure you dont make that bluefor guy a player.
    Having problems with editing missions try the following sites:
    http://www.ofpec.com/
    http://community.bistudio.com/wiki/Main_Page

  7. #7
    This in an init or script set to go off when you want will turn all Civilians to be freindly with EAST and NOT WEST.

    Quote Originally Posted by [b
    Quote[/b] ]
    Civilian setFriend [west, 0]; Civilian setFriend [east, 1];
    west setFriend [Civilian, 0]; east setFriend [Civilian, 1];

    MattXR ( MxR )

    Check out my Twitter BIS Fans and Sub!
    -- MRKCCO Twitter --


  8. #8
    Second Lieutenant Tankbuster's Avatar
    Join Date
    Jun 14 2005
    Location
    RPT
    Posts
    4,058
    Author of the Thread
    Right. Good.

    So, how can we make the civs "break" cover when they grab a gun?

  9. #9
    For them to grab a gun, you must have some trigger or script that contains the "grab a gun" actions. In that same script, set these civs to "dude setcaptive false" (where dude is the name of a civ unit). You would have to do this for each unit.

    If its a group of civs, you can do one line of code to set all the units in the group:

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">{_x setcaptive false} foreach units group civGroup1;[/QUOTE]

    Above command assumes a group of civilians is named civGroup1 (or the group leader is named civGroup1);

    Once they are no longer "captive", their enemies will fire on them.

  10. #10
    Quote Originally Posted by [b
    Quote[/b] ]This in an init or script set to go off when you want will turn all Civilians to be freindly with EAST and NOT WEST.
    To be used with caution as Bluefor will attack all empty vehicles, empty objects,etc as empty objects are civillian by definition.

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
  •