Jump to content

Kaiden

Independent Helper
  • Content Count

    354
  • Joined

  • Last visited

  • Days Won

    14

Kaiden last won the day on April 20

Kaiden had the most liked content!

Community Reputation

41 Great

2 Followers

About Kaiden

  • Rank
    Accomplished Member

Personal Information

  • Country

PC Specs

  • CPU
    i7 7600k
  • Memory
    16GB
  • Hard Drive
    1,81TB & 250GB SSD
  • Graphic Card
    AMD Radeon R9 390
  • PSU
    DN
  • Case
    DN
  • Monitor
    SAMSUNG LC27F398 27" CURVED MONITOR

Recent Profile Visitors

1,047 profile views
  1. This might work too. Just a simple random countdown. #include "..\..\script_macros.hpp" /* File: fn_openInventory.sqf Author: Bryan "Tonic" Boardwine Description: Starts the initialization of vehicle virtual inventory menu. */ private ["_vehicle","_veh_data"]; if (trunkopened == 1) exitWith {}; trunkopened = 1; if(dialog) exitWith {trunkopened = 0;}; _vehicle = [_this,0,objNull,[objNull]] call BIS_fnc_param; if (isNull _vehicle || !(_vehicle isKindOf "Car" || _vehicle isKindOf "Air" || _vehicle isKindOf "Ship" || _vehicle isKindOf "Box_IND_Grenades_F" || _vehicle isKindOf "B_supplyCrate_F")) exitWith {}; //Either a null or invalid vehicle type. if((_vehicle getVariable ["trunk_in_use",false])) exitWith {trunkopened = 0; hint localize "STR_MISC_VehInvUse"}; _time = 1 + round(random 9); while {_time > 0} do { hintsilent format ["Opening inventory in %1 seconds.",_time]; uiSleep 1; _time = _time - 1; }; closeDialog 0; if((_vehicle getVariable ["trunk_in_use",false])) exitWith {hint localize "STR_MISC_VehInvUse"; trunkopened = 0;}; _vehicle setVariable["trunk_in_use",true,true]; hint "Inventory opened successfully!"; if(!createDialog "TrunkMenu") exitWith {hint localize "STR_MISC_DialogError";}; //Couldn't create the menu? disableSerialization; trunkopened = 0; if (_vehicle isKindOf "Box_IND_Grenades_F" || _vehicle isKindOf "B_supplyCrate_F") then { ctrlSetText[3501,format [(localize "STR_MISC_HouseStorage")+ " - %1",getText(configFile >> "CfgVehicles" >> (typeOf _vehicle) >> "displayName")]]; } else { ctrlSetText[3501,format [(localize "STR_MISC_VehStorage")+ " - %1",getText(configFile >> "CfgVehicles" >> (typeOf _vehicle) >> "displayName")]]; }; _veh_data = [_vehicle] call life_fnc_vehicleWeight; if (_veh_data select 0 isEqualTo -1) exitWith {closeDialog 0; _vehicle setVariable ["trunk_in_use",false,true]; hint localize "STR_MISC_NoStorageVeh";}; ctrlSetText[3504,format [(localize "STR_MISC_Weight")+ " %1/%2",_veh_data select 1,_veh_data select 0]]; [_vehicle] call life_fnc_vehInventory; life_trunk_vehicle = _vehicle; _vehicle spawn { waitUntil {isNull (findDisplay 3500)}; _this setVariable ["trunk_in_use",false,true]; if (_this isKindOf "Box_IND_Grenades_F" || _this isKindOf "B_supplyCrate_F") then { if (life_HC_isActive) then { [_this] remoteExecCall ["HC_fnc_updateHouseTrunk",HC_Life]; } else { [_this] remoteExecCall ["TON_fnc_updateHouseTrunk",2]; }; }; }; if (LIFE_SETTINGS(getNumber,"save_vehicle_virtualItems") isEqualTo 1) then { _vehicle spawn { waitUntil {isNull (findDisplay 3500)}; _this setVariable ["trunk_in_use",false,true]; if ((_this isKindOf "Car") || (_this isKindOf "Air") || (_this isKindOf "Ship")) then { [] call SOCK_fnc_updateRequest; if (life_HC_isActive) then { [_this,2] remoteExecCall ["HC_fnc_vehicleUpdate",HC_Life]; } else { [_this,2] remoteExecCall ["TON_fnc_vehicleUpdate",2]; }; }; }; }; Remember to put the variable in your configuration.sqf ↓ trunkopened = 0;
  2. 23:49:43 Wrong init state 23:49:43 Error in expression <{ if (_forEachIndex isEqualTo 0) then { atm_hospital_2 setPos (_var modelToWorld> 23:49:43 Error position: <atm_hospital_2 setPos (_var modelToWorld> 23:49:43 Error Undefined variable in expression: atm_hospital_2 23:49:43 File life_server\init.sqf, line 101 23:49:43 Error in expression <0175781,0.0234375,-0.231956]); } else { atm_hospital_3 setPos (_var modelToWorld> 23:49:43 Error position: <atm_hospital_3 setPos (_var modelToWorld> 23:49:43 Error Undefined variable in expression: atm_hospital_3 23:49:43 File life_server\init.sqf, line 107 23:49:43 Error in expression <], "Side Channel", "%UNIT_NAME", []]; fed_bank setVariable ["safe",count playa> 23:49:43 Error position: <fed_bank setVariable ["safe",count playa> 23:49:43 Error Undefined variable in expression: fed_bank 23:49:43 File life_server\init.sqf, line 140
  3. Include it in your RscTitles in your description.
  4. The file is called functions.hpp on 5.0 and it is in your mission root folder.
  5. Have you checked your client rpt? If not please send it. Also the server rpt for good measure.
  6. Doubt someone will actually pay 10 euros for a simple loading screen like that.
  7. Instead of using XaFlaForo_forceBleedOut?
  8. There are some rather major bugs with it. Tested it earlier and it seems like whenever you force respawn it kills you again. Also, you should probably block keys. Other than that, seems like it works pretty well. I was wondering about modifying the bleed out timer.
  9. What are you using to open your server?
×
×
  • Create New...