mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
76e1aafb33
Co-authored-by: Björn Dahlgren <bjorn@dahlgren.io>
23 lines
413 B
Plaintext
23 lines
413 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: commy2, esteldunedain
|
|
* Converts number to hexadecimal number
|
|
*
|
|
* Arguments:
|
|
* 0: A number between 0 and 255 <NUMBER>
|
|
*
|
|
* Return Value:
|
|
* A hexadecimal number as string <STRING>
|
|
*
|
|
* Example:
|
|
* [154] call ace_common_fnc_toHex
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
|
|
params ["_number"];
|
|
|
|
_number = ((round abs _number) max 0) min 255;
|
|
|
|
GVAR(hexArray) select _number // return
|