Sv Set

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

Sets the contents of a string variable to the passed formattable string. Although ported to NVSE, this function was deprecated in OBSE. It is simpler and better easier to use Let instead. Added by NVSE 4.1.

Syntax

[help]
(none) Sv_Set Literal:string Formatting Target:string_var

Example

string_var my_string
int SomeVariable

let my_string := "You don't need to use sv_set to do this " + $SomeVariable

sv_set "but if you really want to, its like this %g" SomeVariable, my_string

See Also