ScarDoc

Start typing to search the SCAR reference.

Function
Util

Util_GetTrailingNumber

Returns trailing numbers from a string, if it exists, nil otherwise. E.G. \"marker23\" would return 23.

On this page
Util_GetTrailingNumber(val)

Description

Returns trailing numbers from a string, if it exists, nil otherwise. E.G. \"marker23\" would return 23.

Parameters

  • valStringrequired

Returns

Real

Source

Declared in the game's script sources at:

scar/scarutil.scar