Sv SubString
Jump to navigation
Jump to search
< [[::Category:Functions|Category:Functions]]
A function added by the New Vegas Script Extender.
Description
Returns a substring of a string variable. Although ported to NVSE, this function was deprecated in OBSE. It is simpler and better to use slice notation instead. Added by NVSE 4.1.
Syntax
(string) Sv_SubString Source:string_var StartPos:int HowMany:int
Example
string_var my_string string_var my_substring let my_string := "This is my string" let my_substring := my_string[0:4] ; returns "This" the easy way let my_substring := Sv_SubString my_string 0, 4 ; returns "This" using this function