Difference between revisions of "Sv Destruct"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>CSbot
(Automated import of articles)
 
imported>DragoonWraith
Line 1: Line 1:
{{BotAddedPage|CSbot|DragoonWraith}}
{{Function
{{Function
  | origin = OBSE
  | origin = OBSE
  | summary =  
  | summary = Destroys a string variable, setting its value to zero and preventing its contents from being saved in the savegame. Two different syntaxes are supported: the first should be used in an assignment with no parameters, using the Set keyword: <tt>set stringVar to sv_Destruct</tt>. The second is used without assignment and accepts up to ten string variables as arguments, destroying them all:
  | name = sv_Destruct
  | name = sv_Destruct
  | returnVal = string_var
  | returnVal = string_var
  | alt = sv_Destruct
  | alt = sv_Destruct
| altRetVal = void
| altArgs =
{{FunctionArgument
  | name = var1
  | type = string_var
}}{{FunctionArgument
  | name = var2
  | type = string_var
  | optional = y
}}{{FunctionArgument
  | name = var3
  | type = string_var
  | optional = y
}}{{FunctionArgument
  | name = ... var10
  | type = string_var
  | optional = y
}}
}}
}}



Revision as of 19:26, 28 August 2010

< [[::Category:Functions|Category:Functions]]

A function added by the Oblivion Script Extender.

Syntax:

(string_var) sv_Destruct 
(void) sv_Destruct var1:string_var var2:string_var var3:string_var ... var10:string_var

Destroys a string variable, setting its value to zero and preventing its contents from being saved in the savegame. Two different syntaxes are supported: the first should be used in an assignment with no parameters, using the Set keyword: set stringVar to sv_Destruct. The second is used without assignment and accepts up to ten string variables as arguments, destroying them all: