Sv Erase

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

Erases the specified number of characters from the specified string starting at the specified position. Omitting the HowMany argument will erase all characters from startPos to the end of the string variable.

Note that this function modifies a string variable in place, and returns nothing.

Syntax

[help]
(none) Sv_Erase Source:string_var StartPos:int HowMany:int

Example

string_var my_string

let my_string := "He never waves when he goes by"

Sv_Erase my_string, 2, 6

; my_string == "He waves when he goes by"

Sv_Erase my_string 8

; my_string == "He waves"

See Also