- Released: 2007-10-16
- SQF function in a single file
- Includes demo mission
Works out the name (e.g. "North North-West") or abbreviated name (e.g. "NNW") of a compass direction given a value in degrees (clockwise from North, as returned from getDir) or a vector (as returned from vectorDir, wind or weaponDirection). The user can specify how many possible directions to take the names from: 4 (N, E, W, S), 8 (adding NE, etc), 16 (adding NNE, etc) or 32 (adding NEbE, etc).
Based on a small part of a script by [seven]
v0.1.1 - Correctly accepts degree values outside range of 0-359.
v0.1.0 - First release at OFPEC.