Welcome, Guest Saturday 19th April 2014, 18:02:23
   Home   Help Search Login Register  

OFPEC Forum

Author Topic: SPON_directionName (ACCEPTED)  (Read 1627 times)
0 Members and 1 Guest are viewing this topic.
Spooner
*
Offline Offline


Mostly useless


WWW
« on: 16 Oct 2007, 20:38:21 »

SPON_directionName v0.1.0
- 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).

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

ChangeLog
v0.1.1 - Correctly accepts degree values outside range of 0-359.
v0.1.0 - First release at OFPEC.

* SPON_directionName_v0-1-1.zip (8.82 KB - downloaded 230 times.)
« Last Edit: 27 Oct 2007, 15:01:42 by Spooner » Logged

[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)
Spooner
*
Offline Offline


Mostly useless


WWW
« Reply #1 on: 16 Oct 2007, 22:15:07 »

Mandoble pointed out that the function should accept angles outside of the range 0-359. I'll fix that in the next version.

*** EDIT ***
Updated with the suggested fix.
« Last Edit: 16 Oct 2007, 23:04:48 by Spooner » Logged

[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)
LeeHunt
Former Staff
****
Offline Offline


John 21:25


« Reply #2 on: 23 Oct 2007, 23:35:48 »

I just demo'd this, looks good  Good  Accepted!
Logged

Pages: [1]   Go Up
  Send this topicPrint  
 
Jump to: