Difference between revisions of "Operator Element"
Jump to navigation
Jump to search
m
→Overview
imported>JRoush m (→Overview) |
imported>JRoush m (→Overview) |
||
Line 2: | Line 2: | ||
Operator Elements are a subgroup of the elements in the [[:Category: Oblivion XML|Oblivion XML]] schema, always found as children of [[Property Element]]s. They are used to create mathematical formulas, which the game engine evaluates in real time to get the property value. | Operator Elements are a subgroup of the elements in the [[:Category: Oblivion XML|Oblivion XML]] schema, always found as children of [[Property Element]]s. They are used to create mathematical formulas, which the game engine evaluates in real time to get the property value. | ||
There is pretty much an Operator Element for every basic mathematical operator - at least | There is pretty much an Operator Element for every basic mathematical operator - at least every operator that takes two operands. The first operand is always the current value of the property (i.e. whatever the value was the ''previous'' frame). | ||
If the operator contains a literal number or string, that is used as the second operand. For example: | If the operator contains a literal number or string, that is used as the second operand. For example: | ||
<image> | <image> |