Author: Spooner
Author Website:

Requirements: No addons required

Version: 0.1.0

Short description:
Date: 2007-11-21 20:18
Submitted by: Spooner


Comments: (0)
Rating:



 



SPON Recognise
by
Spooner


Description:
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).


Credits:
Based on a small part of a script by [seven]


Version:
v0.1.1
Correctly accepts degree values outside range of 0-359

v0.1.0
First release at OFPEC


Forum topic:
- OFPEC.com




Download from FTP #1:
SPON directionName
Download from FTP #2:
SPON directionName
Download from FTP #3:
Size : 1 MB   Downloaded : 229 times     Report broken download link



Tags: No tags