SnapIntoInteraction - Actor

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Actor Script

Near-instantly snap this actor into/onto a furniture/mount.

Syntax[edit | edit source]

bool Function SnapIntoInteraction(ObjectReference akTarget) native

Parameters[edit | edit source]

  • akTarget: the furniture or mount to snap this actor into/onto. Please note this will just fail if the furniture is in use or the actor's "seat" on the mount is occupied.

Return Value[edit | edit source]

True if it succeeds, false if it fails.

Examples[edit | edit source]

; Snap the dude into furniture
if TheDude.SnapIntoInteraction(Furniture)
  Debug.Trace("We got into the furniture...")
endIf

Notes[edit | edit source]

  • The actor will pop, so try not to do this at a time when the player could be watching.
  • This will not work if the actor has no loaded 3d! (IE, is not in the loaded area) If the actor you want to snap is outside the loaded area, you will have to disable them, move them, and re-enable them.

See Also[edit | edit source]