Page MenuHomeFeedback Tracker

add "windSpeed" scripting command
New, WishlistPublic

Description

There are currently two ways to get wind information. "wind" which returns an [x, y, z] array in meters per second speed. And, "windStr" which returns a 0-1 value. However, there is no "windSpeed" method. This would be relatively simple to add. Just something like this:

[code]
_windSpeed = sqrt(((wind select 0) ^ 2) + ((wind select 1) ^ 2) + ((wind select 2) ^ 2));
[/code]

Details

Legacy ID
2542159230
Severity
None
Resolution
Open
Reproducibility
N/A
Category
Feature Request

Event Timeline

firefly2442 edited Additional Information. (Show Details)
firefly2442 set Category to Feature Request.
firefly2442 set Reproducibility to N/A.
firefly2442 set Severity to None.
firefly2442 set Resolution to Open.
firefly2442 set Legacy ID to 2542159230.May 7 2016, 7:30 PM

No need to add a command for every tiny conversion needed.

Simply get the length/magnitude:
_windSpeed = vectorMagnitude wind;

Ahh, cheers. Didn't know about that one.

@firefly2442: It's a relatively new command.
But you can also use one of BIS' functions:
_windSpeed = wind call BIS_fnc_vectorMagnitude;