Mr.Free 2.0 ︻芫══一 0 Report post Posted March 20, 2018 Ist es möglich in der neusten Exile version einen custom Key zu erstellen in dem man per Key pressing sich InstaDoc verabreicht? Wenn ja welcher custom key Danke schonmal für die schnelle und hilfreiche antwort! Mfg Share this post Link to post Share on other sites
CaptainChaos 18 Report post Posted March 20, 2018 (edited) Ich benutze die Taste 7 Habe als Bedingung noch ein Schsden von > 50% eingefügt. ExileClient_gui_hud_event_onKeyDown.sqf: case 0x08: { if ((damage player) > 0.5) then { call DeinSkript; }; _stopPropagation = true; }; Edited March 20, 2018 by CaptainChaos Share this post Link to post Share on other sites
Mr.Free 2.0 ︻芫══一 0 Report post Posted March 20, 2018 wo finde ich denn die sqf? Share this post Link to post Share on other sites
WURSTKETTE 212 Report post Posted March 20, 2018 Im falschen Sub und im Englischenabteil - Deutsche Sektion nutzen: http://exile.majormittens.co.uk/forum/81-german/ HealMe ist doch keine Exilefunktion?! Wollte er es per Instadoc eingebunden haben //overwrite für ExileClient_gui_hud_event_onKeyUp.sqf erstellen case 0x08: { if !((damage player) isEqualTo 0) then { "Exile_Item_Instadoc" call ExileClient_object_item_consume; }; _stopPropagation = true; }; 1 Share this post Link to post Share on other sites
woodysg 9 Report post Posted March 21, 2018 A different version of the code to be merged in to ExileClient_gui_hud_event_onKeyDown.sqf code. This version lets the player define which key (i.e. user custom key) to use for bandage, Vishpirin or Insta: Spoiler if (_keyCode in (actionKeys "User7")) exitWith { if !(ExileClientIsHandcuffed || ExileIsPlayingRussianRoulette) then { if ((damage player) isEqualTo 0) then { infotitleandtext", Whoops!", "You're at full health."]] call ExileClient_gui_toaster_addTemplateToast; } else { if !(alive player) then { infotitleandtext", Whoops!", "You're already dead."]] call ExileClient_gui_toaster_addTemplateToast; } else { if !("Exile_Item_Bandage" in (magazines player)) then { infotitleandtext", Whoops!", "You do not have any bandages."]] call ExileClient_gui_toaster_addTemplateToast; } else { if ("Exile_Item_Bandage" in (magazines player)) then { exile_item_bandage"] call ExileClient_object_item_consume; }; }; }; }; }; true }; if (_keyCode in (actionKeys "User8")) exitWith { if !(ExileClientIsHandcuffed || ExileIsPlayingRussianRoulette) then { if ((damage player) isEqualTo 0) then { infotitleandtext", Whoops!", "You're at full health."]] call ExileClient_gui_toaster_addTemplateToast; } else { if !(alive player) then { infotitleandtext", Whoops!", "You're already dead."]] call ExileClient_gui_toaster_addTemplateToast; } else { if !("Exile_Item_Vishpirin" in (magazines player)) then { infotitleandtext", Whoops!", "You don't have any Vishpirin."]] call ExileClient_gui_toaster_addTemplateToast; } else { if ("Exile_Item_Vishpirin" in (magazines player)) then { exile_item_vishpirin"] call ExileClient_object_item_consume; }; }; }; }; }; true }; if (_keyCode in (actionKeys "User9")) exitWith { if !(ExileClientIsHandcuffed || ExileIsPlayingRussianRoulette) then { if ((damage player) isEqualTo 0) then { infotitleandtext", Whoops!", "You're at full health."]] call ExileClient_gui_toaster_addTemplateToast; } else { if !(alive player) then { infotitleandtext", Whoops!", "You're already dead."]] call ExileClient_gui_toaster_addTemplateToast; } else { if !("Exile_Item_InstaDoc" in (magazines player)) then { infotitleandtext", Whoops!", "You don't have any Instadocs."]] call ExileClient_gui_toaster_addTemplateToast; } else { if ("Exile_Item_InstaDoc" in (magazines player)) then { exile_item_instadoc"] call ExileClient_object_item_consume; }; }; }; }; }; true }; Share this post Link to post Share on other sites
Mr.Free 2.0 ︻芫══一 0 Report post Posted March 21, 2018 Wäre es möglich wenn mir das einer Richtig erklärt mit wo muss die sqf dann hin und welcher code am besten von @WURSTKETTE weil er das wirklich gut erklärt hat wäre dir dankbar ich hätte gerne User action 10 danke dir Share this post Link to post Share on other sites