v24 fixes & tweaks

This commit is contained in:
second_coming 2016-04-18 20:34:50 +01:00
parent 71cd1d9f0c
commit b4e36888f2
5 changed files with 5 additions and 2 deletions

1
$PBOPREFIX$ Normal file
View File

@ -0,0 +1 @@
x\addons\a3_exile_occupation

1
PboPrefix.txt Normal file
View File

@ -0,0 +1 @@
x\addons\a3_exile_occupation

View File

@ -2,7 +2,7 @@
//
// Server Occupation script by second_coming
//
SC_occupationVersion = "v23 (18-04-2016)";
SC_occupationVersion = "v24 (18-04-2016)";
//
// http://www.exilemod.com/profile/60-second_coming/
//

View File

@ -2,7 +2,7 @@
_logDetail = _this select 0;
if(SC_infiSTAR_log) then
if(SC_infiSTAR_log && !isNil "INFISTARVERSION") then
{
['A3_EXILE_OCCUPATION',_logDetail] call FNC_A3_CUSTOMLOG;
}

View File

@ -36,6 +36,7 @@ busDriver setCaptive true;
_publicBus = createVehicle [SC_occupyPublicBusClass, _spawnLocation, [], 0, "CAN_COLLIDE"];
SC_publicBusArray = SC_publicBusArray + [_publicBus];
_publicBus setVariable ["SC_assignedDriver", busDriver,true];
_publicBus setVariable ["SC_publicBus", true,true];
_publicBus setVariable ["SC_vehicleSpawnLocation", _spawnLocation,true];
_publicBus addEventHandler ["getin", "_this call SC_fnc_getOnBus;"];
_publicBus addEventHandler ["getout", "_this call SC_fnc_getOffBus;"];