A command for Oblivion Script Extender
Syntax:
cos [float]
Returns the cosine of the angle.
set x to r * ( cos theta )