Sv Set

Revision as of 04:46, 21 August 2014 by imported>Odessa (created. source gribbleshnibbit + OBSE docs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
< [[::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

(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