Skip to content

Attribute OC/Object

Represents a script attribute/trigger.


Constructor

oc attr(string unusedName, int type)

Gets a new attribute.


Attributes

x

float attr.x

X position.


y

float attr.y

Y position.


y

float attr.z

Z position.


bdid

string attr.bdid

Unknown. Getter only.

Methods

isValid

void attr->isValid()

⚠ Dummy function.


setGround

void attr->setGround()

Unknown.


dispOn

void attr->dispOn(int visible = true)

Set whether the attr is visible.


dispOff

void attr->dispOff(int invisible = true)

Set whether the attr is invisible.


setSize

void effect->setSize(float radius, float height)

Sets the size as a cylinder shape.


setBox

void attr->setBox(float fixX, float fixY, float fixZ, float rotY)

Sets the size as a box shape.


inside

bool attr->inside(oc unit = nil)

Unknown.


insideNormal

bool attr->insideNormal(oc unit)

Unknown.