PlayTerrainEffect - ObjectReference

From the CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

Plays a terrain effect that is attached to the specified bone of this object.

Syntax[edit | edit source]

Function PlayTerrainEffect(string asEffectModelName, string asAttachBoneName) native

Parameters[edit | edit source]

  • asEffectModelName: The name of the effect model.
  • asAttachBoneName: The name of the bone that the effect will be attached to.

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Play terrain effect on Bob The Dragon (attaching to Bob The Dragon's move bone).
BobTheDragon.PlayTerrainEffect("effects/dragoncrash/fxdragoncrashfurrow01.nif", "dragonMoveBone")

See Also[edit | edit source]