{"name":"setRainbow","title":"setRainbow","type":"command","url":"https://community.bistudio.com/wiki/setRainbow","revid":379383,"updated":"2026-10-30T23:59:12Z","groups":["Environment"],"status":"ok","games":{"arma3":"0.50"},"since":"arma3 0.50","arma3_since":"0.50","locality":{"effect":"local"},"description":"Changes the rainbow value smoothly during the given time (in seconds). A time of zero means there will be an immediate change.","syntaxes":[{"syntax":"time setRainbow value","params":[{"name":"time","type":"Number","type_expr":"Number"},{"name":"value","type":"Number","type_expr":"Number"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"time"},"right":{"text":"value"}}],"examples":[{"code":["360 setRainbow 1;"]}],"see_also":["rainbow"],"notes":[{"user":"Benargee","date":"2015-04-24T00:32:00Z","text":"It should be known that this command does not create a rainbow in all conditions. As in real life, the rainbow can only appear after rainfall and opposite of the sun when it is low on the horizon."},{"user":"Sa-Matra","date":"2022-07-01T07:24:42Z","text":"This command seems to be completely local, no synchronization with other clients, no JIP, nothing, you have to do it all yourself."}]}