Skip to content

Effect OC/Object

Represents a world/field effect.


Constructor

oc effect(string effectName, int effectId, int unused = nil)

Gets a new effect.

Valid Names:

  • map or em
  • common or er

Attributes

x

float effect.x

X position.


y

float effect.y

Y position.


y

float effect.z

Z position.


bdid

string effect.bdid

Unknown. Getter only.

Methods

isValid

void effect->isValid()

⚠ Dummy function.


setGround

void effect->setGround()

Unknown.


dispOn

void effect->dispOn(int visible = true)

Set whether the effect is visible.


dispOff

void effect->dispOff(int invisible = true)

Set whether the effect is invisible.


signal

void effect->signal(int mode)

Unknown.


setCas

void effect->setCas(oc unit)

Sets caster.


setTgt

void effect->setTgt(oc unit)

Sets target.


setWeaponCas

void effect->setWeaponCas(oc unit)

Sets weapon caster.