Forum Jump :

Author Message


Posts: 3
Rank:


Level: Member

Country: br
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2017-05-17 19:56        
     
Hello

I would like help with 2 insurgency scripts:

1) A script to randomly spawn ammo box to be destroyed.

2) A script for when to get the "intel", go revealing the possible locations of the cache.

Intel script that I use:
0 = [] spawn {
  if (isServer) then {
    while {true} do {
      sleep 10;
      {
        _unit = _x;
        if !(_unit getVariable ["hasIntelEVH",false]) then {
          _unit addEventHandler ["killed",{
            params ["_unit"];
            if (random 10 > 8) then {
              _suitcase = "Land_Suitcase_F" createVehicle (getpos _unit);
              [_suitcase,["Pick up INTEL", {hint "Voce conseguiu informacoes sobre o cache, olhe o mapa."}]] remoteExec ["addAction"];
            };
          }];
          _unit setVariable ["hasIntelEVH",true];
        };
      } forEach (allUnits select {side _x == EAST});
    };
  };
};


Author Message


Posts: 3
Rank:


Level: Member

Country: br
Location:
Occupation:
Age:
In-game name:

 
#2 Posted at 2017-05-19 13:50        
     
any suggestion?






Tags: Insurgency