引数の概念とか戻り値がちょっと分かりにくいけど、慣れたらいける。頑張れ。
https://community.bistudio.com/wiki/Category:Scripting_Commands_Arma_3