{"name":"camSetRelPos","title":"camSetRelPos","type":"command","url":"https://community.bistudio.com/wiki/camSetRelPos","revid":377388,"updated":"2026-01-02T06:43:59Z","groups":["Camera Control"],"status":"ok","games":{"ofp":"1.00","ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"ofp 1.00","arma3_since":"0.50","locality":{"argument":"local","effect":"local"},"description":"Sets the position of the given camera relative to its target, set with camSetTarget. Needs a call to camCommit to be conducted.\n\n> [!IMPORTANT]\n> Since it sets relative position to the target, the camSetTarget command should be executed already, before camSetRelPos.","syntaxes":[{"syntax":"camera camSetRelPos position","params":[{"name":"camera","type":"Object","description":"object of type \"camera\"","type_expr":"Object"},{"name":"position","type":"PositionRelative","type_expr":"PositionRelative"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"camera"},"right":{"text":"position"}}],"examples":[{"code":["_cam camSetTarget _car;\n_cam camSetRelPos [0,10,8];"]}],"see_also":["camSetPos"],"notes":[{"user":"Unknown","text":"The location of the camera will depend on the direction the target object is facing.\nThe camera does not bank with the target (bug?)."}]}