SetActorCause - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

Sets the actor as the actor cause of this object.

Syntax[edit | edit source]

Function SetActorCause(Actor akActor) native

Parameters[edit | edit source]

  • akActor: The Actor to set as this object's actor cause. If None, it will clear it.

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Make Bob responsible for whatever the object does
Object.SetActorCause(Bob)


; Clear the actor cause, which means no one is responsible for the object anymore
Object.SetActorCause(None)

See Also[edit | edit source]