You need a functions module on the map to use this and
waituntil {!isnil "bis_fnc_init"};
at the top of the script. See more functions and a complete list using BIS_fnc_Help
http://community.bistudio.com/wiki/C...A_2:_Functions
scriptName "Functions\objects\fn_setPitchBank.sqf";
Spoiler:
show spoiler
/************************************************** **********
Set Pitch and Bank
By Andrew Barron
Parameters: [object, pitch, bank]
Returns: nothing
Rotates an object, giving it the specified pitch and bank,
in degrees.
Pitch is 0 when the object is level; 90 when pointing straight
up; and -90 when pointing straight down.
Bank is 0 when level; 90 when the object is rolled to the right,
-90 when rolled to the left, and 180 when rolled upside down.
Note that the object's yaw can be set with the setdir command,
which should be issued before using this function, if required.
The pitch/bank can be leveled out (set to 0) by using the
setdir command.
Example: [player, 45, -45] call BIS_fnc_setPitchBank
************************************************** **********/