Jump to content

#SEM - Simple Epoch Missions v0.8.1 + 0.8.3 test


KiloSwiss

Recommended Posts

something like this 

_veh = createVehicle["B_MRAP_01_EPOCH", _pos, [], 0, "NONE"];
_veh setDamage 0.8;
_veh setFuel 0;
_veh setVariable["LASTLOGOUT_EPOCH",1000000000000];
_veh setVariable["LAST_CHECK",1000000000000];
//So Vehicle doesnt despawn
EPOCH_VehicleSlotsLimit = EPOCH_VehicleSlotsLimit + 1;
EPOCH_VehicleSlots pushBack str(EPOCH_VehicleSlotsLimit);
_slot = EPOCH_VehicleSlots select 0;
_veh setVariable ['VEHICLE_SLOT',_slot,true];
EPOCH_VehicleSlots = EPOCH_VehicleSlots - [_slot];
EPOCH_VehicleSlotCount = count EPOCH_VehicleSlots;
publicVariable 'EPOCH_VehicleSlotCount';
_veh call EPOCH_server_setVToken;
//Creates vehicle inventory
clearWeaponCargoGlobal    _veh;
clearMagazineCargoGlobal  _veh;
clearBackpackCargoGlobal  _veh;
clearItemCargoGlobal       _veh;
 
_group = [_pos,(15+(random 7))] call SEM_fnc_spawnAI;
//Spawn AI into Vehicle 
_grp = [_pos,2)] call SEM_fnc_spawnAI;
_grp addVehicle _veh
_grp assignAsDriver _veh
_grp assignAsCargo _veh

Link to comment
Share on other sites

I put 0.6 on my test server last night, commented out the launchers though. Had another issue where the AI would only fire at me if I was within 50m exactly. 51m they didn't fire, stepped forward to 49 they opened up, anyone else had this behaviour?

Only had that issue once in every long while, and not with the whole mission crew. They work off line of sight, so if they see you at 700 meters, they shoot you at 700 meters. If they don't see you, you can walk up and pop a bullet in their heads. You should move up to v0.7.1 though, lots of improvements.

 

Also, the launchers disappear upon AI death, so players can't pick them up. I think the launcher units keep shite real. Last night they fired a rocket at my team mate, when he was running from one position to another...good stuff!!

Link to comment
Share on other sites

just tried what i posted 2 lines up, getting this ? 

 

14:08:43 Error in expression <)] call SEM_fnc_spawnAI;

 
_grp = [_pos,1)] call SEM_fnc_spawnAI;
_grp addVehicle>
14:08:43   Error position: <)] call SEM_fnc_spawnAI;
_grp addVehicle>
14:08:43   Error Missing ]
14:08:43 File sem\missions\DisabledHunter.sqf, line 43 
Link to comment
Share on other sites

Thanks, so if i wanted someone in turret select another unit 

_unit = units _group select (count units _group -2);

_unit  assignAsGunner _veh;

 

 

 

 

~~~ 

Edit, while trying to add just a driver, im getting :

 

17:47:03 Error in expression <select (count units _group -1); 

 
_unit addVehicle _veh;
_unit assignAsDriver _v>
17:47:03   Error position: <addVehicle _veh;
_unit assignAsDriver _v>
17:47:03   Error addvehicle: Type Object, expected Group
 
 
so im doing it as if
_veh = is my vehicle
_group = calls your spawn script
_unit = selects one unit from the _group
Link to comment
Share on other sites

Read the BIS wiki page I linked You, addVehicle expects a group not a single unit.

I don't want to sound mean and I really appreciate Your efford here but, these are basic scripting errors and they tell You exactly what is wrong.

You should be able to fix (most of) them by Yourself.

Link to comment
Share on other sites

this is the chunk of RPT that spams :D 

 

13:21:51 Error in expression < BIS_fnc_isPosBlacklisted)) then
{
if ((_pos distance _testPos) >= _minDist) the>
13:21:51   Error position: <_pos distance _testPos) >= _minDist) the>
13:21:51   Error Undefined variable in expression: _pos
13:21:51 File A3\functions_f\misc\fn_findSafePos.sqf, line 98
13:21:51 Error in expression <["_newX", "_newY", "_testPos"];
_newX = _posX + (_maxDist - (random (_maxDist * >
13:21:51   Error position: <_posX + (_maxDist - (random (_maxDist * >
13:21:51   Error Undefined variable in expression: _posx
13:21:51 File A3\functions_f\misc\fn_findSafePos.sqf, line 90

Link to comment
Share on other sites

Revive player is not working on my server, I have only these missions and a Welcome text script on my server, does anyone know if they could be causing the revive player not to work?

Not sure if it's related but mine has also stopped working reliably. I however also have other scripts running and VEMF loaded.

Link to comment
Share on other sites

Are You talking about Panthera Island?

SEM is configured to work with every custom Island, there should be no problem at all.

I will double check the code of my getWorldData function tomorrow, just to make sure everything works.

@Leigham

You are sending wrong data in Your arguments, or not enough arguments at all to the function BIS_fnc_findSafePos

Greez KiloSwiss

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
×
×
  • Create New...