SetLocalGravity

From the Oblivion ConstructionSet Wiki
Revision as of 12:18, 6 September 2011 by imported>DragoonWraith (Created page with "{{Function | origin = OBSE | summary = Sets the vertical (Z) acceleration due to gravity for the current cell. Negative values are the norm, causing objects to accelerate dow...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the Oblivion Script Extender.

Syntax:

(void) SetLocalGravity gravity:float

Sets the vertical (Z) acceleration due to gravity for the current cell. Negative values are the norm, causing objects to accelerate downward, but positive values are also acceptable. Changing the gravity for an exterior cell changes it for all exterior cells until it is reset by another call to this function. Changes to gravity in an interior cell affect only that cell, and the change will be reset once the cell is reloaded.


See Also