Background for Skyrim SE
Member of the clib script
stringfunctioncStringSetLength(stringaString, intstringLength, stringfiller="")Global

Description

Documentation String

Requirements: None

Documentation Comment

Think of this as a combination of 'ArrayResize' a 'string length clamp' for a string
filler can be any length desired so long as the string doesn't exceed 128 chars!
thank you cadpnq for the suggestion that made the non-SKSE version possible!


Caveats


Parameters

stringaString

intstringLength

stringfiller=""


Examples

Auto-Generated Example

string myString__aString
int myInt__stringLength
string myString__filler

string returnedValue = clib.cStringSetLength(myString__aString, myInt__stringLength, myString__filler)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.