Rotates an object, giving it the specified pitch and bank, in degrees.
|Syntax:||[object, pitch, bank, apply] call fn_vbs_setPitchBank|
|Return Value:||Array - [vectorDir array Vector3D, vectorUp array Vector3D] (V1.22+, in older version, returns Nothing).|
When using functions in VBS versions older than 3.4, certain limitations and requirements should be kept in mind - the main ones being that capitalization of the function name is crucial, and that #include "\vbs2\headers\function_library.hpp" has to be included in every script that utilizes it. More Category VBS Scripting Functions.
[player, 45, -45] call fn_vbs_setPitchBank
|See also:||fn vbs getPitchBank, setVectorDirAndUp, setMaxBank|
- This function is similar to
- , however the inputs (pitch / bank) are more natural to work with. There are certain situations where working with absolute positions and vectors are more useful, and in those cases,
- should be used instead. But in general, you should find this function to be more useful.