Method VisualEffect
VisualEffect(VfxType, bool, float, Vector3, Vector3)
Creates an effect that plays a visual effect when applied.
public static Effect VisualEffect(VfxType visualEffectId, bool missEffect = false, float fScale = 1, Vector3 vTranslate = default, Vector3 vRotate = default)
Parameters
visualEffectIdVfxTypeThe visual effect to apply.
missEffectboolIf true, a random vector near or past the target will be generated, as the location for the effect.
fScalefloatA scaling factor to apply to the visual effect.
vTranslateVector3A translation vector transform to apply to the visual effect.
vRotateVector3A rotation vector transform to apply to the visual effect.
Returns
VisualEffect(VisualEffectTableEntry, bool, float, Vector3, Vector3)
Creates an effect that plays a visual effect when applied.
public static Effect VisualEffect(VisualEffectTableEntry visualEffect, bool missEffect = false, float fScale = 1, Vector3 vTranslate = default, Vector3 vRotate = default)
Parameters
visualEffectVisualEffectTableEntryThe visual effect to apply.
missEffectboolIf true, a random vector near or past the target will be generated, as the location for the effect.
fScalefloatA scaling factor to apply to the visual effect.
vTranslateVector3A translation vector transform to apply to the visual effect.
vRotateVector3A rotation vector transform to apply to the visual effect.