Class "ProceduralEffect"⚓︎
Info
你可以通过以下函数获取此类:
Example Code
1 |
|
Functions⚓︎
GetActionProperty ()⚓︎
table GetActionProperty ( )⚓︎
| toType | int | target type |
When GetActionType
returns SPAWN_ENTITY
, the returned table has the following fields.
| scale | float | |
When GetActionType
returns CONVERT_ENTITY
, the returned table has the following fields.
| fromVariant | int | |
When GetActionType
returns FART
, the returned table has the following fields.
| damage | float | |
When GetActionType
returns AREA_DAMAGE
, the returned table has the following fields.
| id | int | |
| fromType | int | |
|:--|:--|:--|
| variant | int | |
When GetActionType
returns ADD_TEMPRORY_EFFECT
, the returned table has the following fields.
Returns a table that describes the action argument.
When GetActionType
returns USE_ACTIVE_ITEM
, the returned table has the following fields.
|Field|Type|Comment|
| type | int | |
| radius | float | |
| toVariant | int | target variant |
GetActionType ()⚓︎
ProceduralEffectActionType GetActionType ( )⚓︎
Returns what to do after the effect is triggered.
GetConditionProperty ()⚓︎
table GetConditionProperty ( )⚓︎
| type | int |
| variant | int |
Returns a table that describes the condition argument.
When GetConditionType
returns ENTITY_SPAWN
, the returned table has the following fields.
|:--|:--|
|Field|Type|
GetConditionType ()⚓︎
ProceduralEffectConditionType GetConditionType ( )⚓︎
Returns the timing when the effect was triggered.
GetTriggerChance ()⚓︎
float GetTriggerChance ( )⚓︎
Values range from 0
to 1
.