{"name":"setCamShakeParams","operator":null,"title":"setCamShakeParams","type":"command","url":"https://community.bistudio.com/wiki/setCamShakeParams","revid":364174,"updated":"2024-05-05T10:46:45Z","groups":["Camera Control"],"status":"ok","replaced_by":[],"games":[{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":"local","server_exec":false},"exec":null,"description":"Sets camera shake parameters. Will not have any effect until shake is started via addCamShake.","syntaxes":[{"syntax":"setCamShakeParams [posCoef, vertCoef, horzCoef, bankCoef, interpolation]","since":null,"effect":null,"exec":null,"params":[{"name":"posCoef","type":"Number","optional":false,"default":null,"description":"strength of positional movement (how far the whole position can change in X,Y&Z). Should not be bigger than **0.1** to prevent the camera from moving into or behind the player","types":["Number"],"since":null,"text":"posCoef: Number - strength of positional movement (how far the whole position can change in X,Y&Z). Should not be bigger than **0.1** to prevent the camera from moving into or behind the player"},{"name":"vertCoef","type":"Number","optional":false,"default":null,"description":"strength of vertical camera pan (up/down), practical range: 0..10","types":["Number"],"since":null,"text":"vertCoef: Number - strength of vertical camera pan (up/down), practical range: 0..10"},{"name":"horzCoef","type":"Number","optional":false,"default":null,"description":"strength of horizontal camera pan (left/right), practical range: 0..10","types":["Number"],"since":null,"text":"horzCoef: Number - strength of horizontal camera pan (left/right), practical range: 0..10"},{"name":"bankCoef","type":"Number","optional":false,"default":null,"description":"strength of camera tilt/bank, practical range: 0..20","types":["Number"],"since":null,"text":"bankCoef: Number - strength of camera tilt/bank, practical range: 0..20"},{"name":"interpolation","type":"Boolean","optional":false,"default":null,"description":"if true, then transitions in the different shaking directions will be smoother","types":["Boolean"],"since":null,"text":"interpolation: Boolean - if true, then transitions in the different shaking directions will be smoother"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"unary","operator":null,"left":null,"right":{"text":"[posCoef, vertCoef, horzCoef, bankCoef, interpolation]","types":["Array"]}}],"examples":[{"text":"```sqf\nsetCamShakeParams [0.1, 1, 1, 1, true];\n```","code":["setCamShakeParams [0.1, 1, 1, 1, true];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["setCamShakeDefParams","addCamShake","enableCamShake","resetCamShake"],"notes":[],"categories":["Arma 2: Operation Arrowhead: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 3: Scripting Commands","Command Group: Camera Control","Introduced with Arma 2: Operation Arrowhead version 1.50","Scripting Commands","Scripting Commands: Local Effect","Take On Helicopters: Scripting Commands"]}