G'day guys,
There has been a lot of new threads by newcomers that ask the same/similar questions, found in many other threads.
If you are new to ArmA or want to get into scripting, welcome to the forums! :)
As you know, there is a search box at the top of the page, it can be used to search throughout every thread what you are after. Bear in mind that it may sometimes not provide you with the proper answer. This, however, doesn't mean that another thread should be opened. In fact, there is a huge library of scripts you probably never heard of.
Check it out, there is an abundant of examples provided in each script command: https://community.bistudio.com/wiki/Category:Scripting_Commands_Arma_3
It is constantly being updated with new facts, info and scripts by many of our users such as KK. (Killzone Kid)
Lastly, here are some basic info and tips on scripting.
To create your own scripts, navigate to "My Documents\Arma 3\missions\your_saved_mission". Then, create a text document and rename the extension ".txt" to ".sqf". Once done, open it with Notepad or Notepad++.
To run your script in the game, navigate to your mission folder and create a "init.sqf". Open it and put this in:
[] execVM "myscript.sqf";
If you want to get a specific unit to do some action (e.g. setDamage or setFuel), give your unit a name but without spaces. Then in a trigger, put this in:
myguy setDamage 1;
The symbol ";" used after each command, is to separate the command from another. (Think of it as a period symbol)
Also, if you are thinking that Steam Workshop is the only place for mods, addons, scripts, etc. Armaholic is the official site for releasing such. You can find it here, they also have a FAQ as well: http://www.armaholic.com
If you want to convert a string to code, you can use call compile STRING. This is very handy (and sometimes a smart trick) when passing code around such as lbData. ;)
This wraps up the introduction for those new to scripting. If you have any questions, concerns or ideas that may improve this thread, feel free to post here. ^_^
Happy Scripting, ;)
Rawner135
ArmA 3 Tutorial Links:
Arma 3 Scripting Tutorial For Noobs - forums.bistudio.com
[Tutorial] Server Side Scripting - forums.bistudio.com
Camera Scripting - www.armaholic.com
KK's blog - ArmA Scripting
Videos:
Modding Tutorials by GameDev Byrne:
https://www.youtube.com/playlist?list=PLqRU_EL4pwOHOJ6L2P5XlpfmNoWqulZqf
Other Tutorial Links:
http://www.kylania.com/ex/
Conversation System
Mission Editor
ArmA 2 Mission Editor
Triggers
OFPEC
ArmA 2 Scripting Commands
ArmA2 COMREF
Forums Post - Classnames
ArmA2 Library
ArmAholic
ArmA2 Moves
ArmA2 Modules
Description.ext
Scripting Topics (Check All Links)
Startup Parameters
Crash Files
Tasks
ARMA 2 Functions
PostProcess Effects