AttachAshPile - Actor

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Actor Script

Attaches an "ash pile" to the actor using the specified base object. Basically it's an object dropped at the actor's feet which cannot be picked up or moved by the player and, when activated, passes the activation onto the actor.

If this is called on an Essential actor, the function will log an error. Best practice is to check that the actor is not essential prior to calling this function.

Syntax[edit | edit source]

Function AttachAshPile(Form akAshPileBase = None) native

Parameters[edit | edit source]

  • akAshPileBase: The base object or leveled item list to use for the ash pile. If None is passed, it will use the default ash pile base object.
    • Default: None

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Attach the default ash pile object to the spectre
if ( !Spectre.IsEssential() )
    Spectre.AttachAshPile()


; Attach a bucket ash pile object to the spectre
if ( !Spectre.IsEssential() )
    Spectre.AttachAshPile(BucketMiscObject)

See Also[edit | edit source]