DECORATE expressions

From ECWolf Wiki
Revision as of 20:06, 1 October 2012 by Blzut3 (talk | contribs) (Created page with "Parameters in which normally take integer values in DECORATE may be full expressions. The standard mathematical operators are supported. == Mathematical Functions == * '''...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.