AttachAshPile - Actor

From Creation Kit
Jump to: navigation, 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

Function AttachAshPile(Form akAshPileBase = None) native

Parameters

  • 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

None.

Examples

; 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