Barba-negra 117 Posted August 10, 2018 good afternoon to all guys, greetings, I come here asking for help, is there a possibility to make a scripts that can block or make the jump key of the custom actions section not work? Do I need to block it for a mission, or in a specific area of the map, Thank you very much for the help in advance Share this post Link to post Share on other sites
gokitty1199 225 Posted August 11, 2018 5 hours ago, elthefrank said: good afternoon to all guys, greetings, I come here asking for help, is there a possibility to make a scripts that can block or make the jump key of the custom actions section not work? Do I need to block it for a mission, or in a specific area of the map, Thank you very much for the help in advance just make a boolean variable in the condition for the jump script, if the player is outside the area then change the variable to true, if their inside the area you dont want them to jump change it to false. Share this post Link to post Share on other sites
Barba-negra 117 Posted August 11, 2018 thanks friend, the problem is that I do not know how to do it since my programming knowledge is low, could you help me do it? and excuse me Share this post Link to post Share on other sites
gokitty1199 225 Posted August 11, 2018 2 minutes ago, elthefrank said: thanks friend, the problem is that I do not know how to do it since my programming knowledge is low, could you help me do it? and excuse me i would need to see the script your using for the jump Share this post Link to post Share on other sites
Barba-negra 117 Posted August 11, 2018 in the game settings, in the part of customize controls in action 1, if you place a key, and then go to the game, when you press the key the player jumps or climbs, that is the action that I need to block in the area specifies Share this post Link to post Share on other sites
gokitty1199 225 Posted August 11, 2018 30 minutes ago, elthefrank said: in the game settings, in the part of customize controls in action 1, if you place a key, and then go to the game, when you press the key the player jumps or climbs, that is the action that I need to block in the area specifies but theres no jumping in the game period aside from scripts(someone correct me if im wrong) Share this post Link to post Share on other sites
Barba-negra 117 Posted August 11, 2018 I will verify please wait Share this post Link to post Share on other sites
Barba-negra 117 Posted August 11, 2018 you are right, there are no scripts of arma 3 of jump, I must have a mod that does it, I will verify what it is and I say Share this post Link to post Share on other sites
Barba-negra 117 Posted August 11, 2018 the mod that I use is this http://www.armaholic.com/page.php?id=27224, but I need it for other areas of the mission, but I would like to block it in a specific area, there is some possibility of blocking it in a area ? Share this post Link to post Share on other sites
gokitty1199 225 Posted August 11, 2018 while your player is outside of a trigger he will be able to jump freely like normal, when he goes in the trigger he will not be able to jump. run this off your initPlayerLocal somewhere player setVariable ["canJump", true]; waituntil {!isnull (finddisplay 46)}; (findDisplay 46) displayAddEventHandler["KeyDown", { _canJump = player getVariable ["canJump", true]; _done = false; if ((_this select 1) in actionKeys "User1" && !(_canJump)) then { _done = true; }; _done }]; and make a trigger covering the area that you do not want the player to be able to jump 1 Share this post Link to post Share on other sites
Barba-negra 117 Posted August 11, 2018 oh my god thank you are a Genius : - o Share this post Link to post Share on other sites
Barba-negra 117 Posted August 11, 2018 I have placed the scripts in the iniplayerlocal, the trigger should I put a variable name? Share this post Link to post Share on other sites
Barba-negra 117 Posted August 11, 2018 friend I'm doing but I can still jump in the area, surely I must be doing something wrong Share this post Link to post Share on other sites
Barba-negra 117 Posted August 11, 2018 I just saw the image that you placed, and I made the trigger, but I still can jump inside the area, I'm going to try placing it in the init of the mission Share this post Link to post Share on other sites
gokitty1199 225 Posted August 11, 2018 29 minutes ago, elthefrank said: I just saw the image that you placed, and I made the trigger, but I still can jump inside the area, I'm going to try placing it in the init of the mission do you have your jump key set to user action 1? Share this post Link to post Share on other sites
Barba-negra 117 Posted August 11, 2018 Yes, I have the action to use action 1, and it does not work even if it could be happening? Share this post Link to post Share on other sites
Barba-negra 117 Posted August 11, 2018 it works now thanks thanks thanks, excellent you are a genius : - D Share this post Link to post Share on other sites
gokitty1199 225 Posted August 12, 2018 50 minutes ago, elthefrank said: it works now thanks thanks thanks, excellent you are a genius : - D what was the issue? Share this post Link to post Share on other sites
Barba-negra 117 Posted August 12, 2018 an error of mine when writing in the trigger : - ) Share this post Link to post Share on other sites