Jump to content

luckyhendrix

Member
  • Content Count

    328
  • Joined

  • Last visited

  • Medals

  • Medals

Posts posted by luckyhendrix


  1. I'm digging out this post because I've noticed that this functions doesn't seem to work in MP. If I put in a trigger nul = [] execVM "campGuard.sqf" , it work fiine in solo , but nothing happens in MP. I've tried to launch the script from the init.sqf, I've checked everything I could , but It looks like function just don't work in MP is it normal ?


  2. hello,

    I was trying to set up a kind of "field hospital".I wanted to have soldiers in inuried state but writing: this setvariable ["BIS_IS_Agony",true] has no effect at all. What would be nice also , is to have medic healing injuried soldier like the anim from first aid modules but the animation would never end.How can I acheive this ?


  3. It is finaly working with this

    _trig = createTrigger ["EmptyDetector",getArray(configFile >> "CfgWorlds" >> worldName >> "centerPosition")];

    _trig setTriggerType "NONE";

    _trig setTriggerActivation ["ANY", "PRESENT", true];

    _trig setTriggerArea [30000, 30000, 0, false ];

    _trig setTriggerStatements ["this", "", ""];

    while{true}do{

    AirVehicles = [];

    _mylist = [];

    _mylist = list _trig;

    {if(_X isKindOf "Air")then{AirVehicles = AirVehicles + [_X]}} forEach _mylist;

    player sidechat format["airveh: %1",AirVehicles];//debug

    sleep 5;

    };

    All Units Only does count mens


  4. gosh it was so simple , thx.

    I'll try with a trigger.

    ---------- Post added at 09:20 PM ---------- Previous post was at 07:34 PM ----------

    I've got a hard time for having this array , here's my vehiclelist.sqf:

    AirVehicles = [];

    trig = createTrigger ["EmptyDetector",getArray(configFile >> "CfgWorlds" >> worldName >> "centerPosition")];

    trig setTriggerType "NONE";

    trig setTriggerActivation ["ANY", "PRESENT", true];

    trig setTriggerArea [30000, 30000, 0, false ];

    trig setTriggerStatements ["this", "", ""];

    _mylist = [];

    while{true}do{

    _mylist = +(list _trig);

    {if(_X isKindOf "Air")then{_AirVehicles = _AirVehicles + [_X]}} forEach _mylist;

    player sidechat format["airveh: %1",_AirVehicles];//debug

    player sidechat format["list: %1",(list_trig)];//debug

    player sidechat format["mylist: %1",_mylist];//debug

    sleep 5;

    };

    the errors tell me that foreach should receive an array and not a number. But _mylist is an array so what ?


  5. Hello,

    I've searched a lot but i haven't found if it is possible to check if a variable is contained in an array . exemple:

    myarray1 = [man1,man2,man3]

    myarray2 = [woman1,woman2,woman3]

    if( player == myarray1)exitwith{hint " you're a man !"};

    if( player == myarray2)exitwith{hint " you're a woman !"};

    Also how can I have an array that contains all the aerial vehicle of a mission ?


  6. Hello,

    I wanted to set up a dedicated server so I could test my scripts/missions.

    So what I did is I created a new shortcut for arma II with this in the target field.

    "C:\Program Files\Bohemia Interactive\ArmA 2\arma2.exe" -server -config=server.cfg -mod=@myMod

    I created a server.cfg file with all the settings and put it in my main arma II folder.

    When I click on the server Icon it seems to work fine the console launch.

    Then I launch the game with but when I click on multiplayer in the menu , the game crashes... :confused:


  7. I've corrected the mistake but wierdly I have any for X an Y. I don't remeber how I got the Y coordonates working before I forgat to save my mission :(

    But if I activate my GPS script with , nul = [player] execVM "gps.sqf" in a radio trigger I get any for all coords.

    Same if I activate the script via an addaction.

×