Back to Browse

SOG HEADLAMP SCRIPT

33 views
Dec 8, 2023
3:07

idk nam is dark https://discord.gg/cYfUhZbkee initPlayerLocal.sqf headlightAction = ["HeadLamp","Head Lamp","",{[[_player], "headLamp.sqf"]remoteExec ["execVM",2];},{((goggles _player) isEqualTo "vn_o_acc_goggles_01")}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions"], headlightAction] call ace_interact_menu_fnc_addActionToObject; /////headLamp.sqf//// _player = _this select 0; _var = _player getVariable ["LampOn",false]; if (_var)then { _varLamp = _player getVariable ["LampObject",""]; if !(_varLamp isEqualTo "")then{ detach _varLamp; deleteVehicle _varLamp; _player setVariable ["LampOn",false,true]; }else{hint "no object";}; }else{ _light = "Reflector_Cone_01_Long_white_F" createVehicle [0,0,0]; _light attachTo [_player, [0, 0, 1.5], "head",true]; _player setVariable ["LampObject",_light,true]; _player setVariable ["LampOn",true,true]; };

Download

0 formats

No download links available.

SOG HEADLAMP SCRIPT | NatokHD