Difference between revisions of "DECORATE expressions"

From ECWolf Wiki
(Created page with "Parameters in which normally take integer values in DECORATE may be full expressions. The standard mathematical operators are supported. == Mathematical Functions == * '''...")
 
(No difference)

Latest revision as of 20:06, 1 October 2012

Parameters in which normally take integer values in DECORATE may be full expressions. The standard mathematical operators are supported.

Mathematical Functions

  • cos(x) - Takes the cosine of the input (degrees).
  • frandom[identifier](min,max) - Returns a floating point number between min and max inclusive.
  • random[identifier](min,max) - Returns a number between min and max inclusive.
  • sin(x) - Takes the sine of the input (degrees).

Identifiers for random functions are optional.

Variables

  • health - Current health of the actor.
  • angle - Current angle of the actor in degrees.