mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
/*
|
|
Author: Aaron Clark - EpochMod.com
|
|
|
|
Contributors:
|
|
|
|
Description:
|
|
Get In handler for A3 Epoch
|
|
|
|
Licence:
|
|
Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike
|
|
|
|
Github:
|
|
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_getInMan_EH.sqf
|
|
*/
|
|
params ["_unit","_position","_vehicle"];
|
|
call EPOCH_niteLight;
|
|
if (_unit == player) then {
|
|
// Disable build mode
|
|
if (EPOCH_buildMode > 0) then {
|
|
EPOCH_buildMode = 0;
|
|
EPOCH_snapDirection = 0;
|
|
["BUILD MODE: DISABLED", 5] call Epoch_message;
|
|
EPOCH_Target = objNull;
|
|
};
|
|
if (missionnamespace getvariable ["EPOCH_AutoEarplug",false]) then {
|
|
if !(EPOCH_Earplugsin) then {
|
|
systemchat 'Earplugs have been auto-inserted...';
|
|
EPOCH_Earplugsin = true;
|
|
1 fadeSound 0.15;
|
|
};
|
|
};
|
|
if (_vehicle getvariable ["Vehicle_Slot","-1"] isequalto "-1") then {
|
|
if (!(_vehicle iskindof "Paraglide") && !(_vehicle iskindof "Ejection_Seat_Base_F")) then {
|
|
['WARNING! This is a temp Vehicle and will despawn after Restart!',5] call Epoch_Message;
|
|
};
|
|
};
|
|
};
|