Difference between revisions of "NvcSetXXX"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Speedo
(updated)
imported>Speedo
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Beta}}
__NOTOC__
__NOTOC__


Line 10: Line 9:
                 ''key:string_var location:string_var''
                 ''key:string_var location:string_var''
   
   
  (success:bool) ''ref.''nvcSetRef value:ref ContainerID key:string ''location:string''
  (success:bool) ''reference.''nvcSetRef value:ref ContainerID key:string ''location:string''
                 ''key:string_var location:string_var''
                 ''key:string_var location:string_var''


Line 18: Line 17:


*Returns 1 if the set was successful.
*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.


[[Category:Functions (NVC)]]
[[Category:Functions (NVC)]]

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.