BossMann, in order to learn ArmA scripting you need: the BI Wiki
https://community.bistudio.com/wiki/Category:Scripting_Topics, BI Forums for help, and a de-pbo software, then you can learn from other peoples missions. Look out for Arma tools/cpbo.
Usually you do scripting outside of ArmAs editor window, because its crap. Use notepad++ and ArmA Syntax highlighter.
A very common concept is: script gets called via a game logic (you can add those in the editor), and the script runs an endless loop and does things.