Difference between revisions of "NvcSetXXX"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Speedo
imported>Speedo
 
Line 1: Line 1:
{{Beta}}
__NOTOC__
__NOTOC__



Latest revision as of 01:20, 26 November 2008


A command for NVC.

(success:bool) nvcSetInt value:int ContainerID key:string location:string
               key:string_var location:string_var

(success:bool) nvcSetFloat value:float ContainerID key:string location:string
               key:string_var location:string_var

(success:bool) reference.nvcSetRef value:ref ContainerID key:string location:string
               key:string_var location:string_var

Note: All parameters should be on the same line.

Sets a value in a container. If the value does not exist, it will be created.

  • Returns 1 if the set was successful.
  • If the value parameter of nvcSetRef is not a valid reference (0), the function will attempt to store the reference of the calling object.