Help

In ULX Shortcut, you can use functions, symbol of operation and variable value for unfixed argument. Check the example.

ULX Shortcut에서는 고정되어 있지 않은 숫자 인수를 위해, 여러 변수와 연산 기호 그리고 함수를 사용할 수 있습니다. 예를 들면 아래와 같습니다.

Clamp({hp}+10, 0, 100)

If this formula is used in ulx hp, heals player by 10%, but won't let their health go above 100.

See the Variables and Functions you can use below.

위 수식을 ulx hp에 사용하게 되면... 플레이어의 체력을 한번에 10씩, 최대 100까지 회복하게 됩니다.

아래의 사용 가능한 변수 및 함수를 참고해보세요.

Usable vars and functions

사용 가능한 변수 및 함수


[Functions]

Please see the Garry's mod Wiki page for more information.

Some MATH functions was blocked for seculity and safety.

더 많은 정보를 위해 Garry's mod Wiki 페이지를 참조하세요.

일부 MATH 함수들은 보안과 안전을 위해 차단되었습니다.


  • abs( number x )

Calculates the absolute value of a number (effectively removes any negative sign).

절대값을 반환합니다.


  • acos( number cos )

Returns the arccosine of the given number.

아크 코사인을 반환합니다.


  • ceil( number number )

Ceils or rounds a number up.

소수점 자리 숫자를 무조건 올립니다.


  • Clamp( number input, number min, number max )

Clamps a number between a minimum and maximum value.

입력된 수를 일정 범위 안으로 제한된 값으로 바꿔 반환합니다.


  • EaseInOut( number progress, number easeIn, number easeOut )

Calculates the progress of a value fraction, taking in to account given easing fractions.

감속 가속 함수.


  • floor( number number )

Floors or rounds a number down.

소수점 자리 숫자를 버립니다.


  • fmod( number base, number modulator )

Returns the modulus of the specified values.

While this is similar to the % operator, it will return a negative value if the first argument is negative, whereas the % operator will return a positive value even if the first operand is negative.

몫을 0을 향해 내림/올림하는 방식으로 x를 y로 나눈 나머지를 반환합니다.


  • ldexp( number normalizedFraction, number exponent )

Takes a normalised number and returns the floating point representation.

2의 거듭제곱으로 곱합니다.


  • max( vararg numbers )

Returns the largest value of all arguments.

입력된 값 중 가장 높은 값을 반환합니다.


  • min( vararg numbers )

Returns the smallest value of all arguments.

입력된 값 중 가장 낮은 값을 반환합니다.


  • pow( number x, number y )

Returns x raised to the power y. In particular, pow(1.0, x) and pow(x, 0.0) always return 1.0, even when x is a zero or a nan. If both x and y are finite, x is negative, and y is not an integer then pow(x, y) is undefined.

x의 y제곱을 구합니다. 만약, pow(1.0, x) 이거나 pow(x, 0.0) 이면, x가 0이거나 nan임에도 항상 1.0을 반환합니다. 만약 x와 y 모두 유한하고, x가 음수이며, y가 정수가 아니면 pow(x, y)는 정해지지 않습니다.


  • Rand( number min, number max )

Returns a random float between min and max.

See also random

최대값과 최소값 사이의 무작위 값을 반환합니다.

random을 함께 확인하세요.


  • random( number m = nil, number n = nil )

When called without arguments, returns a uniform pseudo-random real number in the range 0 to 1 which includes 0 but excludes 1.

When called with an integer number m, returns a uniform pseudo-random integer in the range 1 to m inclusive.

When called with two integer numbers m and n, returns a uniform pseudo-random integer in the range m to n inclusive.

See also Rand

아무 인수 없이 호출하면, 0을 포함하고 1은 제외한 0과 1 사이의 무작위 값을 반환합니다.

만약 m 정수를 호출하면, 1부터 n 까지의 무작위 값을 반환합니다.

만약 두 정수 모두 호출하면, m부터 n 까지의 무작위 값을 반환합니다.

Rand를 함께 확인하세요.



  • Remap( number value, number inMin, number inMax, number outMin, number outMax )

Remaps the value from one range to another.

일정 범위의 값을 다른 일정 범위의 값으로 변환합니다.


  • Round( number value, number decimals = 0 )

Rounds the given value to the nearest whole number or to the given decimal places.

정수, 또는 지정한 자릿수로 반올림합니다.


  • sqrt( number value )

Returns the square root of the number.

제곱근을 반환합니다.


  • TimeFraction( number start, number end, number current )

Returns the fraction of where the current time is relative to the start and end times.

시작과 끝을 기준으로 현재 수의 상대적 위치의 비율을 반환합니다.


  • Truncate( number num, number digits = 0 )

Rounds towards zero.

소수점 자리 숫자를 버리거나, 지정한 자릿수까지 남기고 버립니다.


[Vars]


Notification!

All variables except high_hp, low_hp, high_armor and low_armor do not support multiple targets.

So, if multiple players are selected, return the value for one of them.


알려드립니다.

high_hp와 low_hp, 그리고 high_armor와 low_armor를 제외한 모든 변수들은 플레이어 다중 타겟을 지원하지 않습니다.

즉, 여러 명의 플레이어가 선택되었다면, 그 중 한 명을 대상으로 해서 값을 반환합니다.


{os_time}

Returns the system time in seconds past the unix epoch.

유닉스 시간 이후의 시스템 시간을 반환합니다.


{deaths}

Returns the player's death count

플레이어가 죽은 횟수를 반환합니다.


{kills}

Returns the amount of kills a player has.

플레이어의 킬 수를 반환합니다.


{duck_spd}

Returns a player's duck speed (in seconds)

플레이어의 앉는 속도를 반환합니다. (초)


{unduck_spd}

Returns a player's unduck speed (in seconds)

플레이어의 일어서는 속도를 반환합니다. (초)


{jump_pwr}

Returns the jump power of the player

플레이어의 점프 파워를 반환합니다.


{ladder_climb_spd}

Returns the player's ladder climbing speed.

플레이어의 사다리 타는 속도를 반환합니다.


{max_spd}

Returns the player's maximum movement speed.

플레이어의 최대 이동 속도를 반환합니다.


{walk_spd}

Returns the player's normal walking speed. Not sprinting(shift), not slow walking(alt). (+walk)

플레이어의 걷는 속도를 반환합니다. 스프린트(shift)나 느리게 걷는(alt) 게 아닙니다. (+walk)


{run_spd}

Returns the player's sprint speed.

플레이어의 스프린트 속도를 반환합니다.


{slw_walk_spd}

Returns the player's slow walking speed, which is activated via +walk keybind.

플레이어의 느리게 걷는 속도를 반환합니다.


{step_sz}

Returns the maximum height player can step onto.

플레이어의 최대 걸음 거리 사이즈를 반환합니다.


{hp}

Returns the health of the player.

플레이어의 체력을 반환합니다.


{max_hp}

Returns the max health of the player.

플레이어의 최대 체력을 반환합니다.


{high_hp}

Returns the highest health of the selected players.

선택된 플레이어들의 체력 중 가장 높은 체력을 반환합니다.


{low_hp}

Returns the lowest health of the selected players.

선택된 플레이어들의 체력 중 가장 낮은 체력을 반환합니다.


{armor}

Returns the player's armor.

플레이어의 수트 값을 반환합니다.


{max_armor}

Returns the maximum amount of armor the player should have.

플레이어의 최대 수트 값을 반환합니다.


{high_armor}

Returns the highest amount of armor of the selected players.

선택된 플레이어들의 수트 중 가장 높은 수트를 반환합니다.


{low_armor}

Returns the lowest amount of armor of the selected players.

선택된 플레이어들의 수트 중 가장 높은 수트를 반환합니다.