Many people are confused about the famous devP (hereafter P Drive or P), used by some applications from Arma 3 Community Tools. In this entry, I will try to demystify what’s P and why it has been implemented. What is P Drive? First, P is not a virtual drive but a substitute drive, the concept is […]
I must admit, this has been asked and requested many times and I was too lazy to publish something about it… But, today, I’m in holiday and have some free time to do it… The concept is pretty simple, it increases the fuel uptake taking into account the speed of the player vehicle. This script is […]
With some days of late, here the update of June, 0.69.1430. As usual you will find the new commands and functions for the latest version of Arma 3 but not only.Poseidon Tools begins to socialize with Mikero Tools, with a basic support for the moment. In the menu >> “External programs” >> “Mikero”, you will find […]
It’s time to update Poseidon Tools, this time, a little bit before the deadline  The bases of Poseidon Tools are now ready and next step will add more features. So, you can expect to new features, like SVN support (plus, maybe GIT) and some interactions with Arma 3 Tools, among others. Then, will come the turn of […]
Return a random value between min and max. Note that if #0 > #1, the function will swap vars. If the random result is lower than min, it returns the min. Same for the max value.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
/* Author: Tom_48_97 Description: Return a random value between min and max. Note that if #0 > #1, the function will swap vars. If the random result is lower than min, it returns the min. Same for the max value. Parameter(s): #0 NUMBER - The minimal value #1 NUMBER - The maximum value #2 BASE - Random result type: "round", "floor", "ceil", "float". Any other value will return a float Example of use: this setFuel ([0.2, 0.5] call tm4_fnc_random); this setPosATL [(getPosATL player select 0) + ([5, 10, "floor"] call bis_fnc_random), (getPosATL player select 1) + ([3, 7, "floor"] call bis_fnc_random), 0.1]; Returns: NUMBER - Integer or float */ private["_this", "_min", "_max", "_base", "_return"]; _min = [_this, 0, 0, [0]] call bis_fnc_param; _max = [_this, 1, 1, [0]] call bis_fnc_param; _base = toLower([_this, 2, "float", ["round", "floor", "ceil", "float"]] call bis_fnc_param); if !(typeName _min == typeName 0) exitWith { ["#0: Must be a NUMBER"] call bis_fnc_error; }; if !(typeName _max == typeName 0) exitWith { ["#1: Must be a NUMBER"] call bis_fnc_error; }; if (_min > _max) then { private ["_tmp1", "_tmp2"]; _tmp1 = _min; _tmp2 = _max; _max = _tmp1; _min = _tmp2; }; _return = random _max; if (_base == 'round') Then { _return = round(_return); }; if (_base == 'floor') Then { _return = floor(_return); }; if (_base == 'ceil' ) Then { _return = ceil(_return); }; if (_return < _min) Then { _return = _min + (random (_max - _min)); }; _return |
W0lle has posted a short trailer of the upcoming DLC for Arma 2: Cold War Rearmed, here it is: This DLC is in development since summer 2013 and should be released soon :) Source: Cold War Rearmed Website
A while ago I didn’t published an update of Poseidon, this time, not because of lack of feedback (even if some are really pointless) but in reason of time… As usual, it’s still hard to find enough time to work on community projects. So, what’s new here? Firstly, some codes have been optimized for Windows […]
Il y a quelques temps, Twitter a dĂ©cidĂ© de forcer tout le monde Ă utiliser la version 1.1 de leur API, voici rapidement comment l’utiliser. 1 – CrĂ©er une application sur Twitter Dev Rendez vous ici puis crĂ©ez une application. Une fois l’application crĂ©er, gĂ©nĂ©rez un token d’accès (create my access token). et c’est fait. 2 […]
Certains dĂ©veloppeurs se prennent bien la tĂŞte pour intĂ©grer du contenu MediaWiki, en externe dans un site… D’ailleurs, la majoritĂ© opte pour faire adapter le thème mediawiki et souvent, le thème du site alors qu’il existe une solution vraiment tout simple et existante : l’API ! L’API permet, entre autres, de rĂ©cupĂ©rer le contenu de […]
La question existentielle d’un joueur : “C’est pour nous faire chier que vous mettez le jeu sur Steam ?!” Ce système permet simplement de diffuser les mises Ă jours du produit via le rĂ©seau Steam Ă tous les clients et il y a des bĂ©nĂ©fices non nĂ©gligeables !