GlobalVariable Script: Difference between revisions
Jump to navigation
Jump to search
m
→Member Functions: Formatting Change
imported>Jog |
imported>CraftySentinel m (→Member Functions: Formatting Change) |
||
| Line 19: | Line 19: | ||
== Member Functions == | == Member Functions == | ||
{|class="wikitable" width =100% | |||
!style="text-align:left;"|Function | |||
!style="text-align:left;"|Description | |||
|- | |||
|[[GetValue - GlobalVariable|Float '''GetValue'''()]] | |||
|Returns this global variable's current value. | |||
|- | |||
|[[GetValueInt - GlobalVariable|Int '''GetValueInt'''()]] | |||
|Returns this global variable's current value cast as an int. | |||
|- | |||
|[[Mod - GlobalVariable|Float '''Mod'''(Float ''afHowMuch'')]] | |||
|Modifies this global variable's value in a more thread-safe way. | |||
|- | |||
''' | |[[SetValue - GlobalVariable|'''SetValue'''(Float ''afNewValue'')]] | ||
|Sets this global variable's current value. | |||
|- | |||
|[[SetValueInt - GlobalVariable|'''SetValueInt'''(Int ''aiNewValue'')]] | |||
|Sets this global variable's current value to the specified int. | |||
|- | |||
|} | |||
== Events == | == Events == | ||
None | None | ||