Difference between revisions of "SetValueInt - GlobalVariable"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Jlundin
 
imported>Thingy Person
Line 8: Line 8:
<source lang="papyrus">
<source lang="papyrus">
Function SetValueInt(int aiValue)
Function SetValueInt(int aiValue)
SetValue(aiNewValue as float)
endFunction
</source>
</source>



Revision as of 18:47, 29 June 2013

Member of: GlobalVariable Script

Sets the current value of the global variable object, taking an int as a parameter. See SetValue - GlobalVariable

Syntax

Function SetValueInt(int aiValue)
	SetValue(aiNewValue as float)
endFunction

Parameters

  • aiValue: What value to set the global to.

Return Value

None.

Examples

int newTime = 5
TimeOfDayGlobalProperty.SetValueInt(newTime)

See Also