Search the Community
Showing results for tags 'keypress'.
Found 5 results
-
Question About Official Modded Keybinding Setup (since v.2.06)
kingofnuthin1980 posted a topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
Hello guys, I've tried the new Modded Keybinding, but it's not working for me. Even if using the examples: https://community.bistudio.com/wiki/Arma_3:_Modded_Keybinding WHAT HAPPENS: in the keybinding settings there will be a new category "Mods" with three entries: "Camera" "Editor Camera" "Mod Section" (the one created by the example) but the keybind option "My test action" (Mod_MyActionName ) will be under "Editor Camera". The created entry "Mod Section" is empty Everything else working fine. You can set the keybind and scripts are executed. Any idea what I'm missing, to push the created entry into "Mod Section"? EDIT: The "Camera" and "Editor Camera" settings are default settings. They just appear under "MODS" after adding the custom keybind. The default settings for "Editor Camera" are all gone and replaced by the custom keybind (Mod_MyActionName). Thanks for throwing your brain cells into it 🙂 -
Need hintSilent to disappear after time (1min)
ROTAHOE posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
This script is called by a key press to show how long till server restart. All is working but the hint is staying on screen forever. Want to have the script terminate 1min after the key is pressed but also need it so it can be called multiple times. _restart = ["RestartText","RTX"] call BASE_fnc_getCfgValue; _restartTime = parseNumber (["RestartTime","RTX"] call BASE_fnc_getCfgValue); _color1 = ["RestartTimeColor","RTX"] call BASE_fnc_getCfgValue; _serverTime = (round(_restartTime-(serverTime)/60)); _hours = (floor(_serverTime/60)); _minutes = (_serverTime - (_hours * 60)); switch(_minutes) do { case 9: {_minutes = "09"}; case 8: {_minutes = "08"}; case 7: {_minutes = "07"}; case 6: {_minutes = "06"}; case 5: {_minutes = "05"}; case 4: {_minutes = "04"}; case 3: {_minutes = "03"}; case 2: {_minutes = "02"}; case 1: {_minutes = "01"}; case 0: {_minutes = "00"}; }; hintSilent parseText format [ "<t color='#%1' align='left' size='0.9'>%4</t><t align='right' size='0.9'>%2H:%3M</t><br/>", _color1, /* %1 */ _hours, /* %2 */ _minutes, /* %3 */ _restart /* %4 */ ]; Any help would be amazing Cheers -
Hi i need someone that can make a simple holster script for me that allows the player to holster his weapon after pressing SHIFT+H for now i use this player addAction ["Holster weapon","holsterpistol.sqf"] at the holsterpistol.sqf there is this code player action ["SwitchWeapon", player, player, -1]; pretty simple but im tryna keep the actionbar empty
-
Making text appear with keypress and then fade out
Leopard20 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi. I am trying to make a script where the nearby AI names appear next to them (using drawIcon3D) when a certain key is pressed. I want their names to appear the instant the key is pressed and start to fade out in the next 5 seconds. How can I do that? P.S: I don't want you to describe all the steps! So far my script successfully shows the AI names (when the player is within 50 meters of them); I just need help with the fade out part.- 11 replies
-
- drawicon3d
- countdown
-
(and 1 more)
Tagged with:
-
DrawIcon3d Fade in and out with keypress
Leopard20 posted a topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
Hi. I am trying to make a script where the nearby AI names appear next to them (using drawIcon3D) when a certain key is pressed. I want their names to appear the instant the key is pressed and start to fade out in the next 5 seconds. How can I do that? P.S: I don't want you to describe all the steps! So far my script successfully shows the AI names (when the player is within 50 meters of them); I just need help with the fade out part.