Quantcast
Channel: Homeworld Mods and Modding - The Official Gearbox Software Forums
Viewing all articles
Browse latest Browse all 663

[LUA] function to get chars from string

$
0
0

@Dom2 wrote:

I am trying to use…

CustomType = sub(SobGroup_GetShipType(CustomGroup),-3)

…to get the last 3 characters of the ship type string, but I get parameter: attempt to call global `sub' (a nil value). Does anyone know a string function that will work?

Thanks!

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 663

Trending Articles