Sv Insert

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the New Vegas Script Extender.

Description

Inserts a formattable string (or string variable) into a target string variable at a given position. The target string variable is modified in place, and this function returns nothing.

Syntax

[help]
(none) Sv_Insert Insertion:string Formatting Target:string Position:int

Example

string_var my_string

let my_string := "he building in there?"

Sv_Insert "What's ", my_string, 0

; * my_string == "What's he building in there?" ; (length = 28)

Sv_Insert ", %n" SunnyREF, my_string, 26

; * my_string == "What's he building in there, Sunny Smiles?"

See Also