Advertisement
Guest User

How to add custom scripts

a guest
Jan 5th, 2014
1,011
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. Hello, I've made this tutorial to show you how to add custom scripts to the menu.
  2. ----------------------------------------------------------------------------------
  3.  
  4.  
  5. 1.\ Go to your scripts directory, It should be similar to this. C:\Program Files (x86)\Steam\SteamApps\common\Arma 2\LoganNZL\LoganNZL@scripts
  6.  
  7. 2.\ Get a text editor, notepad should word fine but I would recommend notepad++. Get it at http://download.tuxfamily.org/notepadplus/6.5.3/npp.6.5.3.Installer.exe
  8.  
  9. 3.\ Open the LoganNZL@screen.sqf file and you will see a long list of scripts, you should see categories at the top of each list.
  10.  
  11. 4.\ As an example if I was adding a script called "GiveFood.sqf", I would place in in
  12. C:\Program Files (x86)\Steam\SteamApps\common\Arma 2\LoganNZL\LoganNZL@scripts
  13.  
  14. 5.\ Once the sqf file you want is in the scripts folder you will need to edit the screen.sqf file.
  15. First you need to find the category that you want, I'm just going to use a default one.
  16.  
  17. 6.\ Once you find the category that you want go to the bottom of the scripts list and make a new line like this.
  18. Lpic = Lpic + [""]; Lhacks = Lhacks + ["Break Legs","LoganNZL\LoganNZL@scripts\Lmain.sqf","SQF"];
  19. ^^^ Change this to the title of the script.
  20.  
  21. 7.\ Edit the file path to the name of your script that you placed in
  22. C:\Program Files (x86)\Steam\SteamApps\common\Arma 2\LoganNZL\LoganNZL@scripts.
  23.  
  24. 8.\ If you had a sqf file called addfood.sqf, you would change it to this
  25. Lpic = Lpic + [""]; Lhacks = Lhacks + ["Add Food","LoganNZL\LoganNZL@scripts\addfood.sqf","SQF"];
  26.  
  27. -----------------------------------------------------------------------------------------------------
  28. That is about it, if I missed anything please send me a PM.
  29. _____ _ _ __ _____ __
  30. / ___(_) | |/ || _ |/ |
  31. \ `--. _ __ _ _ __ __ _| |`| || |/' |`| |
  32. `--. \ |/ _` | '_ \ / _` | | | || /| | | |
  33. /\__/ / | (_| | | | | (_| | |_| |\ |_/ /_| |_
  34. \____/|_|\__, |_| |_|\__,_|_|\___/\___/ \___/
  35. __/ |
  36. |___/
  37. -------------------------------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement