#
Class: Effect#
HierarchyHandle<effect>
↳ Effect
#
Constructors#
constructornew Effect(modelName: string, x: number, y: number): Effect
Creates a special effect.
#
Parameters:Name | Type | Description |
---|---|---|
modelName | string | The path of the model that the effect will use. |
x | number | |
y | number |
Returns: Effect
Defined in: handles/effect.ts:8
new Effect(modelName: string, targetWidget: Widget, attachPointName: string): Effect
Creates a special effect attached to a widget.
#
Parameters:Name | Type | Description |
---|---|---|
modelName | string | The path of the model that the effect will use. |
targetWidget | Widget | The widget to attach the effect to. |
attachPointName | string | The attachment point of the widget where the effect will be placed. Attachment points are points in a model that can be referenced to as areas for effects to be attached, whether it be from a spell or this function. If the attachment point does not exist, it will attach the effect to the model's origin. |
Returns: Effect
Defined in: handles/effect.ts:15
#
Properties#
handle• Readonly
handle: effect
Defined in: handles/handle.ts:6
#
Accessors#
idid(): number
Get the unique ID of the handle. The ID is recycled once you destroy the object.
Returns: number
The unique ID of a handle object.
Defined in: handles/handle.ts:18
#
scalescale(): number
Returns: number
Defined in: handles/effect.ts:36
scale(scale: number): void
#
Parameters:Name | Type |
---|---|
scale | number |
Returns: void
Defined in: handles/effect.ts:40
#
xx(): number
Warning: asynchronous
Returns: number
Defined in: handles/effect.ts:47
x(x: number): void
Warning: asynchronous
#
Parameters:Name | Type |
---|---|
x | number |
Returns: void
Defined in: handles/effect.ts:51
#
yy(): number
Warning: asynchronous
Returns: number
Defined in: handles/effect.ts:58
y(y: number): void
Warning: asynchronous
#
Parameters:Name | Type |
---|---|
y | number |
Returns: void
Defined in: handles/effect.ts:62
#
zz(): number
Warning: asynchronous
Returns: number
Defined in: handles/effect.ts:69
z(z: number): void
Warning: asynchronous
#
Parameters:Name | Type |
---|---|
z | number |
Returns: void
Defined in: handles/effect.ts:73
#
Methods#
addSubAnimationaddSubAnimation(subAnim: subanimtype): void
#
Parameters:Name | Type |
---|---|
subAnim | subanimtype |
Returns: void
Defined in: handles/effect.ts:77
#
clearSubAnimationsclearSubAnimations(): void
Returns: void
Defined in: handles/effect.ts:81
#
destroydestroy(): void
Destroy the effect handle. This will play the effect's death animation.
Returns: void
Defined in: handles/effect.ts:88
#
playAnimationplayAnimation(animType: animtype): void
#
Parameters:Name | Type |
---|---|
animType | animtype |
Returns: void
Defined in: handles/effect.ts:92
#
playWithTimeScaleplayWithTimeScale(animType: animtype, timeScale: number): void
#
Parameters:Name | Type |
---|---|
animType | animtype |
timeScale | number |
Returns: void
Defined in: handles/effect.ts:96
#
removeSubAnimationremoveSubAnimation(subAnim: subanimtype): void
#
Parameters:Name | Type |
---|---|
subAnim | subanimtype |
Returns: void
Defined in: handles/effect.ts:100
#
resetScaleMatrixresetScaleMatrix(): void
Returns: void
Defined in: handles/effect.ts:104
#
setAlphasetAlpha(alpha: number): void
#
Parameters:Name | Type |
---|---|
alpha | number |
Returns: void
Defined in: handles/effect.ts:108
#
setColorsetColor(red: number, green: number, blue: number): void
#
Parameters:Name | Type |
---|---|
red | number |
green | number |
blue | number |
Returns: void
Defined in: handles/effect.ts:112
#
setColorByPlayersetColorByPlayer(whichPlayer: MapPlayer): void
#
Parameters:Name | Type |
---|---|
whichPlayer | MapPlayer |
Returns: void
Defined in: handles/effect.ts:116
#
setHeightsetHeight(height: number): void
#
Parameters:Name | Type |
---|---|
height | number |
Returns: void
Defined in: handles/effect.ts:120
#
setOrientationsetOrientation(yaw: number, pitch: number, roll: number): void
#
Parameters:Name | Type |
---|---|
yaw | number |
pitch | number |
roll | number |
Returns: void
Defined in: handles/effect.ts:124
#
setPitchsetPitch(pitch: number): void
#
Parameters:Name | Type |
---|---|
pitch | number |
Returns: void
Defined in: handles/effect.ts:128
#
setPointsetPoint(p: Point): void
#
Parameters:Name | Type |
---|---|
p | Point |
Returns: void
Defined in: handles/effect.ts:132
#
setPositionsetPosition(x: number, y: number, z: number): void
#
Parameters:Name | Type |
---|---|
x | number |
y | number |
z | number |
Returns: void
Defined in: handles/effect.ts:136
#
setRollsetRoll(roll: number): void
#
Parameters:Name | Type |
---|---|
roll | number |
Returns: void
Defined in: handles/effect.ts:140
#
setScaleMatrixsetScaleMatrix(x: number, y: number, z: number): void
#
Parameters:Name | Type |
---|---|
x | number |
y | number |
z | number |
Returns: void
Defined in: handles/effect.ts:144
#
setTimesetTime(value: number): void
#
Parameters:Name | Type |
---|---|
value | number |
Returns: void
Defined in: handles/effect.ts:148
#
setTimeScalesetTimeScale(timeScale: number): void
#
Parameters:Name | Type |
---|---|
timeScale | number |
Returns: void
Defined in: handles/effect.ts:152
#
setYawsetYaw(y: number): void
#
Parameters:Name | Type |
---|---|
y | number |
Returns: void
Defined in: handles/effect.ts:156
#
fromHandlestatic fromHandle(handle: effect): Effect
#
Parameters:Name | Type |
---|---|
handle | effect |
Returns: Effect
Defined in: handles/effect.ts:160