Garry's Mod Wiki

Garry's Mod Wiki

  Angle AngleRand( number min = -90 for pitch, -180 for yaw and roll, number max = 90 for pitch, 180 for yaw and roll )

Description

Returns an angle with a randomized pitch, yaw, and roll between min(inclusive), max(exclusive).

Arguments

1 number min = -90 for pitch, -180 for yaw and roll
Min bound inclusive.
2 number max = 90 for pitch, 180 for yaw and roll
Max bound exclusive.

Returns

1 Angle
The randomly generated angle.

Example

Prints out a random angle.

Output: -6.949 113.388 130.879

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...