drfart 12 Posted August 28, 2016 im looking for an undercover script like in R34P3Rs Like Ghosts mission im trying to find it but i cant find it anywhere can anyone help? Share this post Link to post Share on other sites
davidoss 550 Posted August 28, 2016 Define undercover Share this post Link to post Share on other sites
drfart 12 Posted August 28, 2016 that the enemies will think im just a civ and when i have a gun out and they see me they will shoot me and when i run near them it will be suspicus and they will shoot me or something like that or if im in an area im not supposed to be in Share this post Link to post Share on other sites
drfart 12 Posted August 28, 2016 and by undercover i dont mean set it to night time / put setcaptive on Share this post Link to post Share on other sites
EO 11231 Posted August 28, 2016 Tried this?......http://www.armaholic.com/page.php?id=27496 Share this post Link to post Share on other sites
theend3r 83 Posted August 28, 2016 setCaptive works, you just need to define the conditions for when your cover gets blown, which shouldn't be too hard. TL;DR the best option would be to write a small script yourself. Share this post Link to post Share on other sites
davidoss 550 Posted August 28, 2016 Some day in the past i have created something like that which could be usefully MP friendly. It was a reamobox holding the action to get incognito but it could be any object. It saves player current gear and wear player like locals, changing the speaker as locals have, and sends info on system chat that player turns into incognito. Player can get his gear back on the object again and while incognito when the player pickup any gun, he gets immediately compromised. takeCiv_clothes.sqf private ["_box", "_taker", "_isTFR","_civUniform", "_civHeadGear", "_civGoggles", "_civAssignedItems", "_civSpeakers", "_pWeapons", "_pPrimaryWeaponItems", "_pSecWeaponItems", "_pItems", "_pAssignedItems", "_pUniform", "_pVest", "_pBackpack", "_pHeadGear", "_pGoggle", "_pSpeaker"]; _box = _this select 0; _taker = _this select 1; _isTFR = !isnull (configfile >> "CfgPatches" >> "task_force_radio"); //define incognito gear _civUniform = [ "U_mas_med_C_Civil_1_1", "U_mas_med_C_Civil_2_4", "U_mas_med_C_Civil_2_3", "U_mas_med_C_Civil_2_2", "U_mas_med_C_Civil_2_1", "U_mas_med_C_Civil_1_3", "U_mas_med_C_Civil_1_4", "U_mas_med_C_Civil_1_2" ]; _civHeadGear = [ "H_mas_med_afghat_O", "H_mas_med_arab_I", "H_mas_med_arab_O", "H_mas_med_turban_O", "H_mas_med_afghat_O", "H_mas_med_arab_O", "H_mas_med_arab_I", "H_mas_med_turban_O" ]; _civGoggles = [ "G_mas_wpn_shemag", "G_Aviator", "G_Bandanna_blk" ]; _civAssignedItems = [ "ItemMap", "ItemCompass", "ItemWatch" ]; _civSpeakers = [ "Male03PER", "Male01PER", "Male02PER" ]; //storage current player gear _pWeapons = weapons _taker; _pPrimaryWeaponItems = primaryWeaponItems _taker; _pSecWeaponItems = secondaryWeaponItems _taker; _pItems = itemsWithMagazines _taker; _pAssignedItems = assignedItems _taker; _pUniform = uniform _taker; _pVest = vest _taker; _pBackpack = backpack _taker; _pHeadGear = headgear _taker; _pGoggle = goggles _taker; _pSpeaker = speaker _taker; _taker setVariable ["myWeapons",_pWeapons,false]; _taker setVariable ["myPrimaryWeaponItems",_pPrimaryWeaponItems,false]; _taker setVariable ["mySecWeaponItems",_pSecWeaponItems,false]; _taker setVariable ["myItems",_pItems,false]; _taker setVariable ["myAssignedItems",_pAssignedItems,false]; _taker setVariable ["myUniform",_pUniform,false]; _taker setVariable ["myVest",_pVest,false]; _taker setVariable ["myBackpack",_pBackpack,false]; _taker setVariable ["myHeadGear",_pHeadGear,false]; _taker setVariable ["myGoggle",_pGoggle,false]; _taker setVariable ["mySpeaker",_pSpeaker,false]; //change clothes removeAllWeapons _taker; removeAllItems _taker; removeAllAssignedItems _taker; removeUniform _taker; removeVest _taker; removeBackpack _taker; removeHeadgear _taker; removeGoggles _taker; _taker forceAddUniform (selectRandom _civUniform); _taker addHeadgear (selectRandom _civHeadGear); _taker addGoggles (selectRandom _civGoggles); { _taker linkItem _x; } forEach _civAssignedItems; if (_isTFR) then { _taker linkItem "tf_anprc152"; }; [_taker, (selectRandom _civSpeakers)] remoteExecCall ["setSpeaker", 0, true]; _taker setCaptive true; [profileName + " has turned into incognito.", "systemChat"] call BIS_fnc_MP; _box addaction ["<t color='#58FAF4'>Get back your gear</t>","scripts\takeback_clothes.sqf",nil,6.0,false,true,"","(_target distance _this) < 5"]; _taker spawn { params ["_incognitoUnit"]; while {(side _incognitoUnit) == CIVILIAN} do { if (!alive _incognitoUnit) exitWith {}; if (count (weapons _incognitoUnit) > 0) then { [profileName + " picked up a gun. Incognito compromised!!", "systemChat"] call BIS_fnc_MP; _incognitoUnit setCaptive false; }; sleep 5; }; }; takeback_clothes.sqf private ["_box", "_incognito", "_pUniform", "_pVest", "_pBackpack", "_pHeadGear", "_pWeapons", "_pPrimaryWeaponItems", "_pSecWeaponItems", "_pItems", "_pAssignedItems", "_pGoggle", "_pSpeaker"]; _box = _this select 0; _incognito = _this select 1; _id = _this select 2; _box removeAction _id; removeAllWeapons _incognito; removeAllItems _incognito; removeAllAssignedItems _incognito; removeUniform _incognito; removeVest _incognito; removeBackpack _incognito; removeHeadgear _incognito; removeGoggles _incognito; _pUniform = _incognito getVariable "myUniform"; _pVest = _incognito getVariable "myVest"; _pBackpack = _incognito getVariable "myBackpack"; _pHeadGear = _incognito getVariable "myHeadGear"; _pWeapons =_incognito getVariable "myWeapons"; _pPrimaryWeaponItems = _incognito getVariable "myPrimaryWeaponItems"; _pSecWeaponItems = _incognito getVariable "mySecWeaponItems"; _pItems = _incognito getVariable "myItems"; _pAssignedItems = _incognito getVariable "myAssignedItems"; _pGoggle = _incognito getVariable "myGoggle"; _pSpeaker = _incognito getVariable "mySpeaker"; _incognito addUniform _pUniform; _incognito addVest _pVest; _incognito addBackpack _pBackpack; _incognito addHeadgear _pHeadGear; { _incognito addWeapon _x; } forEach _pWeapons; { _incognito addPrimaryWeaponItem _x; } forEach _pPrimaryWeaponItems; { _incognito addSecondaryWeaponItem _x; } forEach _pSecWeaponItems; { _incognito addItem _x; } forEach _pItems; { _incognito linkItem _x; } forEach _pAssignedItems; _incognito linkItem "tf_anprc152"; _incognito addGoggles _pGoggle; [_incognito, _pSpeaker] remoteExecCall ["setSpeaker", 0, true]; _incognito setCaptive false; [profileName + " has turned back into combat.", "systemChat"] call BIS_fnc_MP; _incognito setVariable ["myWeapons",nil,false]; _incognito setVariable ["myPrimaryWeaponItems",nil,false]; _incognito setVariable ["mySecWeaponItems",nil,false]; _incognito setVariable ["myItems",nil,false]; _incognito setVariable ["myAssignedItems",nil,false]; _incognito setVariable ["myUniform",nil,false]; _incognito setVariable ["myVest",nil,false]; _incognito setVariable ["myBackpack",nil,false]; _incognito setVariable ["myHeadGear",nil,false]; _incognito setVariable ["myGoggle",nil,false]; _incognito setVariable ["mySpeaker",nil,false]; You need to edit takeCiv_clothes.sqf to change gear arrays that will fit your scenario. Put both files in missionroot\scripts folder put code below into any object init field: this addAction [ "<t color='#01DF01'>Turn into Incognito</t>", "scripts\takeCiv_clothes.sqf", nil, 0, false, true, "", "(_target distance _this) < 5 && (side _this) == WEST" ]; With little work its can be expanded to monitor player activity while incognito and set some suspicious value and display kind of bar on screen 1 Share this post Link to post Share on other sites
zagor64bz 1225 Posted August 28, 2016 Some day in the past i have created something like that which could be usefully MP friendly. It was a reamobox holding the action to get incognito but it could be any object. It saves player current gear and wear player like locals, changing the speaker as locals have, and sends info on system chat that player turns into incognito. Player can get his gear back on the object again and while incognito when the player pickup any gun, he gets immediately compromised. takeCiv_clothes.sqf private ["_box", "_taker", "_isTFR","_civUniform", "_civHeadGear", "_civGoggles", "_civAssignedItems", "_civSpeakers", "_pWeapons", "_pPrimaryWeaponItems", "_pSecWeaponItems", "_pItems", "_pAssignedItems", "_pUniform", "_pVest", "_pBackpack", "_pHeadGear", "_pGoggle", "_pSpeaker"]; _box = _this select 0; _taker = _this select 1; _isTFR = !isnull (configfile >> "CfgPatches" >> "task_force_radio"); //define incognito gear _civUniform = [ "U_mas_med_C_Civil_1_1", "U_mas_med_C_Civil_2_4", "U_mas_med_C_Civil_2_3", "U_mas_med_C_Civil_2_2", "U_mas_med_C_Civil_2_1", "U_mas_med_C_Civil_1_3", "U_mas_med_C_Civil_1_4", "U_mas_med_C_Civil_1_2" ]; _civHeadGear = [ "H_mas_med_afghat_O", "H_mas_med_arab_I", "H_mas_med_arab_O", "H_mas_med_turban_O", "H_mas_med_afghat_O", "H_mas_med_arab_O", "H_mas_med_arab_I", "H_mas_med_turban_O" ]; _civGoggles = [ "G_mas_wpn_shemag", "G_Aviator", "G_Bandanna_blk" ]; _civAssignedItems = [ "ItemMap", "ItemCompass", "ItemWatch" ]; _civSpeakers = [ "Male03PER", "Male01PER", "Male02PER" ]; //storage current player gear _pWeapons = weapons _taker; _pPrimaryWeaponItems = primaryWeaponItems _taker; _pSecWeaponItems = secondaryWeaponItems _taker; _pItems = itemsWithMagazines _taker; _pAssignedItems = assignedItems _taker; _pUniform = uniform _taker; _pVest = vest _taker; _pBackpack = backpack _taker; _pHeadGear = headgear _taker; _pGoggle = goggles _taker; _pSpeaker = speaker _taker; _taker setVariable ["myWeapons",_pWeapons,false]; _taker setVariable ["myPrimaryWeaponItems",_pPrimaryWeaponItems,false]; _taker setVariable ["mySecWeaponItems",_pSecWeaponItems,false]; _taker setVariable ["myItems",_pItems,false]; _taker setVariable ["myAssignedItems",_pAssignedItems,false]; _taker setVariable ["myUniform",_pUniform,false]; _taker setVariable ["myVest",_pVest,false]; _taker setVariable ["myBackpack",_pBackpack,false]; _taker setVariable ["myHeadGear",_pHeadGear,false]; _taker setVariable ["myGoggle",_pGoggle,false]; _taker setVariable ["mySpeaker",_pSpeaker,false]; //change clothes removeAllWeapons _taker; removeAllItems _taker; removeAllAssignedItems _taker; removeUniform _taker; removeVest _taker; removeBackpack _taker; removeHeadgear _taker; removeGoggles _taker; _taker forceAddUniform (selectRandom _civUniform); _taker addHeadgear (selectRandom _civHeadGear); _taker addGoggles (selectRandom _civGoggles); { _taker linkItem _x; } forEach _civAssignedItems; if (_isTFR) then { _taker linkItem "tf_anprc152"; }; [_taker, (selectRandom _civSpeakers)] remoteExecCall ["setSpeaker", 0, true]; _taker setCaptive true; [profileName + " has turned into incognito.", "systemChat"] call BIS_fnc_MP; _box addaction ["<t color='#58FAF4'>Get back your gear</t>","scripts\takeback_clothes.sqf",nil,6.0,false,true,"","(_target distance _this) < 5"]; _taker spawn { params ["_incognitoUnit"]; while {(side _incognitoUnit) == CIVILIAN} do { if (!alive _incognitoUnit) exitWith {}; if (count (weapons _incognitoUnit) > 0) then { [profileName + " picked up a gun. Incognito compromised!!", "systemChat"] call BIS_fnc_MP; _incognitoUnit setCaptive false; }; sleep 5; }; }; takeback_clothes.sqf private ["_box", "_incognito", "_pUniform", "_pVest", "_pBackpack", "_pHeadGear", "_pWeapons", "_pPrimaryWeaponItems", "_pSecWeaponItems", "_pItems", "_pAssignedItems", "_pGoggle", "_pSpeaker"]; _box = _this select 0; _incognito = _this select 1; _id = _this select 2; _box removeAction _id; removeAllWeapons _incognito; removeAllItems _incognito; removeAllAssignedItems _incognito; removeUniform _incognito; removeVest _incognito; removeBackpack _incognito; removeHeadgear _incognito; removeGoggles _incognito; _pUniform = _incognito getVariable "myUniform"; _pVest = _incognito getVariable "myVest"; _pBackpack = _incognito getVariable "myBackpack"; _pHeadGear = _incognito getVariable "myHeadGear"; _pWeapons =_incognito getVariable "myWeapons"; _pPrimaryWeaponItems = _incognito getVariable "myPrimaryWeaponItems"; _pSecWeaponItems = _incognito getVariable "mySecWeaponItems"; _pItems = _incognito getVariable "myItems"; _pAssignedItems = _incognito getVariable "myAssignedItems"; _pGoggle = _incognito getVariable "myGoggle"; _pSpeaker = _incognito getVariable "mySpeaker"; _incognito addUniform _pUniform; _incognito addVest _pVest; _incognito addBackpack _pBackpack; _incognito addHeadgear _pHeadGear; { _incognito addWeapon _x; } forEach _pWeapons; { _incognito addPrimaryWeaponItem _x; } forEach _pPrimaryWeaponItems; { _incognito addSecondaryWeaponItem _x; } forEach _pSecWeaponItems; { _incognito addItem _x; } forEach _pItems; { _incognito linkItem _x; } forEach _pAssignedItems; _incognito linkItem "tf_anprc152"; _incognito addGoggles _pGoggle; [_incognito, _pSpeaker] remoteExecCall ["setSpeaker", 0, true]; _incognito setCaptive false; [profileName + " has turned back into combat.", "systemChat"] call BIS_fnc_MP; _incognito setVariable ["myWeapons",nil,false]; _incognito setVariable ["myPrimaryWeaponItems",nil,false]; _incognito setVariable ["mySecWeaponItems",nil,false]; _incognito setVariable ["myItems",nil,false]; _incognito setVariable ["myAssignedItems",nil,false]; _incognito setVariable ["myUniform",nil,false]; _incognito setVariable ["myVest",nil,false]; _incognito setVariable ["myBackpack",nil,false]; _incognito setVariable ["myHeadGear",nil,false]; _incognito setVariable ["myGoggle",nil,false]; _incognito setVariable ["mySpeaker",nil,false]; You need to edit takeCiv_clothes.sqf to change gear arrays that will fit your scenario. Put both files in missionroot\scripts folder put code below into any object init field: this addAction [ "<t color='#01DF01'>Turn into Incognito</t>", "scripts\takeCiv_clothes.sqf", nil, 0, false, true, "", "(_target distance _this) < 5 && (side _this) == WEST" ]; THIS IS GREAT!!! I'm already thinking a good use of this..thank you man! Share this post Link to post Share on other sites
drfart 12 Posted August 29, 2016 Some day in the past i have created something like that which could be usefully MP friendly. It was a reamobox holding the action to get incognito but it could be any object. It saves player current gear and wear player like locals, changing the speaker as locals have, and sends info on system chat that player turns into incognito. Player can get his gear back on the object again and while incognito when the player pickup any gun, he gets immediately compromised. takeCiv_clothes.sqf private ["_box", "_taker", "_isTFR","_civUniform", "_civHeadGear", "_civGoggles", "_civAssignedItems", "_civSpeakers", "_pWeapons", "_pPrimaryWeaponItems", "_pSecWeaponItems", "_pItems", "_pAssignedItems", "_pUniform", "_pVest", "_pBackpack", "_pHeadGear", "_pGoggle", "_pSpeaker"]; _box = _this select 0; _taker = _this select 1; _isTFR = !isnull (configfile >> "CfgPatches" >> "task_force_radio"); //define incognito gear _civUniform = [ "U_mas_med_C_Civil_1_1", "U_mas_med_C_Civil_2_4", "U_mas_med_C_Civil_2_3", "U_mas_med_C_Civil_2_2", "U_mas_med_C_Civil_2_1", "U_mas_med_C_Civil_1_3", "U_mas_med_C_Civil_1_4", "U_mas_med_C_Civil_1_2" ]; _civHeadGear = [ "H_mas_med_afghat_O", "H_mas_med_arab_I", "H_mas_med_arab_O", "H_mas_med_turban_O", "H_mas_med_afghat_O", "H_mas_med_arab_O", "H_mas_med_arab_I", "H_mas_med_turban_O" ]; _civGoggles = [ "G_mas_wpn_shemag", "G_Aviator", "G_Bandanna_blk" ]; _civAssignedItems = [ "ItemMap", "ItemCompass", "ItemWatch" ]; _civSpeakers = [ "Male03PER", "Male01PER", "Male02PER" ]; //storage current player gear _pWeapons = weapons _taker; _pPrimaryWeaponItems = primaryWeaponItems _taker; _pSecWeaponItems = secondaryWeaponItems _taker; _pItems = itemsWithMagazines _taker; _pAssignedItems = assignedItems _taker; _pUniform = uniform _taker; _pVest = vest _taker; _pBackpack = backpack _taker; _pHeadGear = headgear _taker; _pGoggle = goggles _taker; _pSpeaker = speaker _taker; _taker setVariable ["myWeapons",_pWeapons,false]; _taker setVariable ["myPrimaryWeaponItems",_pPrimaryWeaponItems,false]; _taker setVariable ["mySecWeaponItems",_pSecWeaponItems,false]; _taker setVariable ["myItems",_pItems,false]; _taker setVariable ["myAssignedItems",_pAssignedItems,false]; _taker setVariable ["myUniform",_pUniform,false]; _taker setVariable ["myVest",_pVest,false]; _taker setVariable ["myBackpack",_pBackpack,false]; _taker setVariable ["myHeadGear",_pHeadGear,false]; _taker setVariable ["myGoggle",_pGoggle,false]; _taker setVariable ["mySpeaker",_pSpeaker,false]; //change clothes removeAllWeapons _taker; removeAllItems _taker; removeAllAssignedItems _taker; removeUniform _taker; removeVest _taker; removeBackpack _taker; removeHeadgear _taker; removeGoggles _taker; _taker forceAddUniform (selectRandom _civUniform); _taker addHeadgear (selectRandom _civHeadGear); _taker addGoggles (selectRandom _civGoggles); { _taker linkItem _x; } forEach _civAssignedItems; if (_isTFR) then { _taker linkItem "tf_anprc152"; }; [_taker, (selectRandom _civSpeakers)] remoteExecCall ["setSpeaker", 0, true]; _taker setCaptive true; [profileName + " has turned into incognito.", "systemChat"] call BIS_fnc_MP; _box addaction ["<t color='#58FAF4'>Get back your gear</t>","scripts\takeback_clothes.sqf",nil,6.0,false,true,"","(_target distance _this) < 5"]; _taker spawn { params ["_incognitoUnit"]; while {(side _incognitoUnit) == CIVILIAN} do { if (!alive _incognitoUnit) exitWith {}; if (count (weapons _incognitoUnit) > 0) then { [profileName + " picked up a gun. Incognito compromised!!", "systemChat"] call BIS_fnc_MP; _incognitoUnit setCaptive false; }; sleep 5; }; }; takeback_clothes.sqf private ["_box", "_incognito", "_pUniform", "_pVest", "_pBackpack", "_pHeadGear", "_pWeapons", "_pPrimaryWeaponItems", "_pSecWeaponItems", "_pItems", "_pAssignedItems", "_pGoggle", "_pSpeaker"]; _box = _this select 0; _incognito = _this select 1; _id = _this select 2; _box removeAction _id; removeAllWeapons _incognito; removeAllItems _incognito; removeAllAssignedItems _incognito; removeUniform _incognito; removeVest _incognito; removeBackpack _incognito; removeHeadgear _incognito; removeGoggles _incognito; _pUniform = _incognito getVariable "myUniform"; _pVest = _incognito getVariable "myVest"; _pBackpack = _incognito getVariable "myBackpack"; _pHeadGear = _incognito getVariable "myHeadGear"; _pWeapons =_incognito getVariable "myWeapons"; _pPrimaryWeaponItems = _incognito getVariable "myPrimaryWeaponItems"; _pSecWeaponItems = _incognito getVariable "mySecWeaponItems"; _pItems = _incognito getVariable "myItems"; _pAssignedItems = _incognito getVariable "myAssignedItems"; _pGoggle = _incognito getVariable "myGoggle"; _pSpeaker = _incognito getVariable "mySpeaker"; _incognito addUniform _pUniform; _incognito addVest _pVest; _incognito addBackpack _pBackpack; _incognito addHeadgear _pHeadGear; { _incognito addWeapon _x; } forEach _pWeapons; { _incognito addPrimaryWeaponItem _x; } forEach _pPrimaryWeaponItems; { _incognito addSecondaryWeaponItem _x; } forEach _pSecWeaponItems; { _incognito addItem _x; } forEach _pItems; { _incognito linkItem _x; } forEach _pAssignedItems; _incognito linkItem "tf_anprc152"; _incognito addGoggles _pGoggle; [_incognito, _pSpeaker] remoteExecCall ["setSpeaker", 0, true]; _incognito setCaptive false; [profileName + " has turned back into combat.", "systemChat"] call BIS_fnc_MP; _incognito setVariable ["myWeapons",nil,false]; _incognito setVariable ["myPrimaryWeaponItems",nil,false]; _incognito setVariable ["mySecWeaponItems",nil,false]; _incognito setVariable ["myItems",nil,false]; _incognito setVariable ["myAssignedItems",nil,false]; _incognito setVariable ["myUniform",nil,false]; _incognito setVariable ["myVest",nil,false]; _incognito setVariable ["myBackpack",nil,false]; _incognito setVariable ["myHeadGear",nil,false]; _incognito setVariable ["myGoggle",nil,false]; _incognito setVariable ["mySpeaker",nil,false]; You need to edit takeCiv_clothes.sqf to change gear arrays that will fit your scenario. Put both files in missionroot\scripts folder put code below into any object init field: this addAction [ "<t color='#01DF01'>Turn into Incognito</t>", "scripts\takeCiv_clothes.sqf", nil, 0, false, true, "", "(_target distance _this) < 5 && (side _this) == WEST" ]; can i contact you through steam i need some help with scripts im trying to add to it Share this post Link to post Share on other sites
davidoss 550 Posted August 29, 2016 Yes you can! Give me your steam on private mesage maybe Share this post Link to post Share on other sites
chouclak 0 Posted October 23, 2016 Some day in the past i have created something like that which could be usefully MP friendly. It was a reamobox holding the action to get incognito but it could be any object. It saves player current gear and wear player like locals, changing the speaker as locals have, and sends info on system chat that player turns into incognito. Player can get his gear back on the object again and while incognito when the player pickup any gun, he gets immediately compromised. takeCiv_clothes.sqf private ["_box", "_taker", "_isTFR","_civUniform", "_civHeadGear", "_civGoggles", "_civAssignedItems", "_civSpeakers", "_pWeapons", "_pPrimaryWeaponItems", "_pSecWeaponItems", "_pItems", "_pAssignedItems", "_pUniform", "_pVest", "_pBackpack", "_pHeadGear", "_pGoggle", "_pSpeaker"]; _box = _this select 0; _taker = _this select 1; _isTFR = !isnull (configfile >> "CfgPatches" >> "task_force_radio"); //define incognito gear _civUniform = [ "U_mas_med_C_Civil_1_1", "U_mas_med_C_Civil_2_4", "U_mas_med_C_Civil_2_3", "U_mas_med_C_Civil_2_2", "U_mas_med_C_Civil_2_1", "U_mas_med_C_Civil_1_3", "U_mas_med_C_Civil_1_4", "U_mas_med_C_Civil_1_2" ]; _civHeadGear = [ "H_mas_med_afghat_O", "H_mas_med_arab_I", "H_mas_med_arab_O", "H_mas_med_turban_O", "H_mas_med_afghat_O", "H_mas_med_arab_O", "H_mas_med_arab_I", "H_mas_med_turban_O" ]; _civGoggles = [ "G_mas_wpn_shemag", "G_Aviator", "G_Bandanna_blk" ]; _civAssignedItems = [ "ItemMap", "ItemCompass", "ItemWatch" ]; _civSpeakers = [ "Male03PER", "Male01PER", "Male02PER" ]; //storage current player gear _pWeapons = weapons _taker; _pPrimaryWeaponItems = primaryWeaponItems _taker; _pSecWeaponItems = secondaryWeaponItems _taker; _pItems = itemsWithMagazines _taker; _pAssignedItems = assignedItems _taker; _pUniform = uniform _taker; _pVest = vest _taker; _pBackpack = backpack _taker; _pHeadGear = headgear _taker; _pGoggle = goggles _taker; _pSpeaker = speaker _taker; _taker setVariable ["myWeapons",_pWeapons,false]; _taker setVariable ["myPrimaryWeaponItems",_pPrimaryWeaponItems,false]; _taker setVariable ["mySecWeaponItems",_pSecWeaponItems,false]; _taker setVariable ["myItems",_pItems,false]; _taker setVariable ["myAssignedItems",_pAssignedItems,false]; _taker setVariable ["myUniform",_pUniform,false]; _taker setVariable ["myVest",_pVest,false]; _taker setVariable ["myBackpack",_pBackpack,false]; _taker setVariable ["myHeadGear",_pHeadGear,false]; _taker setVariable ["myGoggle",_pGoggle,false]; _taker setVariable ["mySpeaker",_pSpeaker,false]; //change clothes removeAllWeapons _taker; removeAllItems _taker; removeAllAssignedItems _taker; removeUniform _taker; removeVest _taker; removeBackpack _taker; removeHeadgear _taker; removeGoggles _taker; _taker forceAddUniform (selectRandom _civUniform); _taker addHeadgear (selectRandom _civHeadGear); _taker addGoggles (selectRandom _civGoggles); { _taker linkItem _x; } forEach _civAssignedItems; if (_isTFR) then { _taker linkItem "tf_anprc152"; }; [_taker, (selectRandom _civSpeakers)] remoteExecCall ["setSpeaker", 0, true]; _taker setCaptive true; [profileName + " has turned into incognito.", "systemChat"] call BIS_fnc_MP; _box addaction ["<t color='#58FAF4'>Get back your gear</t>","scripts\takeback_clothes.sqf",nil,6.0,false,true,"","(_target distance _this) < 5"]; _taker spawn { params ["_incognitoUnit"]; while {(side _incognitoUnit) == CIVILIAN} do { if (!alive _incognitoUnit) exitWith {}; if (count (weapons _incognitoUnit) > 0) then { [profileName + " picked up a gun. Incognito compromised!!", "systemChat"] call BIS_fnc_MP; _incognitoUnit setCaptive false; }; sleep 5; }; }; takeback_clothes.sqf private ["_box", "_incognito", "_pUniform", "_pVest", "_pBackpack", "_pHeadGear", "_pWeapons", "_pPrimaryWeaponItems", "_pSecWeaponItems", "_pItems", "_pAssignedItems", "_pGoggle", "_pSpeaker"]; _box = _this select 0; _incognito = _this select 1; _id = _this select 2; _box removeAction _id; removeAllWeapons _incognito; removeAllItems _incognito; removeAllAssignedItems _incognito; removeUniform _incognito; removeVest _incognito; removeBackpack _incognito; removeHeadgear _incognito; removeGoggles _incognito; _pUniform = _incognito getVariable "myUniform"; _pVest = _incognito getVariable "myVest"; _pBackpack = _incognito getVariable "myBackpack"; _pHeadGear = _incognito getVariable "myHeadGear"; _pWeapons =_incognito getVariable "myWeapons"; _pPrimaryWeaponItems = _incognito getVariable "myPrimaryWeaponItems"; _pSecWeaponItems = _incognito getVariable "mySecWeaponItems"; _pItems = _incognito getVariable "myItems"; _pAssignedItems = _incognito getVariable "myAssignedItems"; _pGoggle = _incognito getVariable "myGoggle"; _pSpeaker = _incognito getVariable "mySpeaker"; _incognito addUniform _pUniform; _incognito addVest _pVest; _incognito addBackpack _pBackpack; _incognito addHeadgear _pHeadGear; { _incognito addWeapon _x; } forEach _pWeapons; { _incognito addPrimaryWeaponItem _x; } forEach _pPrimaryWeaponItems; { _incognito addSecondaryWeaponItem _x; } forEach _pSecWeaponItems; { _incognito addItem _x; } forEach _pItems; { _incognito linkItem _x; } forEach _pAssignedItems; _incognito linkItem "tf_anprc152"; _incognito addGoggles _pGoggle; [_incognito, _pSpeaker] remoteExecCall ["setSpeaker", 0, true]; _incognito setCaptive false; [profileName + " has turned back into combat.", "systemChat"] call BIS_fnc_MP; _incognito setVariable ["myWeapons",nil,false]; _incognito setVariable ["myPrimaryWeaponItems",nil,false]; _incognito setVariable ["mySecWeaponItems",nil,false]; _incognito setVariable ["myItems",nil,false]; _incognito setVariable ["myAssignedItems",nil,false]; _incognito setVariable ["myUniform",nil,false]; _incognito setVariable ["myVest",nil,false]; _incognito setVariable ["myBackpack",nil,false]; _incognito setVariable ["myHeadGear",nil,false]; _incognito setVariable ["myGoggle",nil,false]; _incognito setVariable ["mySpeaker",nil,false]; You need to edit takeCiv_clothes.sqf to change gear arrays that will fit your scenario. Put both files in missionroot\scripts folder put code below into any object init field: this addAction [ "<t color='#01DF01'>Turn into Incognito</t>", "scripts\takeCiv_clothes.sqf", nil, 0, false, true, "", "(_target distance _this) < 5 && (side _this) == WEST" ]; With little work its can be expanded to monitor player activity while incognito and set some suspicious value and display kind of bar on screen Do we have to call the both .sqf in the init.sqf ? Share this post Link to post Share on other sites
ArmaMan360 94 Posted October 23, 2016 im looking for an undercover script like in R34P3Rs Like Ghost mission im trying to find it but i cant find it anywhere can anyone help? Why dont you use Rydygier's Incognito addon? Guy's an Arma legend.. Incognito Armaholic Share this post Link to post Share on other sites
HeroesandvillainsOS 1504 Posted October 24, 2016 Incontinenetia just did a soft release for one he's working on: http://alivemod.com/forum/2486-undercover-civilian-recruitment-for-alive-alpha-soft-release Share this post Link to post Share on other sites
stormoffires 3 Posted January 2, 2017 is there any way i can simplify this script? i am trying to make a clean script that allows a player to turn off and on being undercover, you can be undercover with no weapon out and no vests. If you pull out a weapon you become discovered, and have some timer, so if you are seen with a weapon you can not go undercover for 15 mins. thanks! Share this post Link to post Share on other sites
davidoss 550 Posted January 2, 2017 You need also do something with uniform ,helmet and vests as well otherwise it will be weird. You can also fake turn into enemy side or civilian by wearing its clothes. In both you need execute the captive command after clothes change. Share this post Link to post Share on other sites