Mod:Creation Kit/AttachAshPile - Actor

Member of: Mod:Creation Kit/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
if ( !Spectre.IsEssential ) Spectre.AttachAshPile if ( !Spectre.IsEssential ) Spectre.AttachAshPile(BucketMiscObject)
 * Attach the default ash pile object to the spectre
 * Attach a bucket ash pile object to the spectre