SetActorCause - ObjectReference: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
imported>Jlundin
No edit summary
 
m (Convert source tags to syntaxhighlight)
 
Line 6: Line 6:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
Function SetActorCause(Actor akActor) native
Function SetActorCause(Actor akActor) native
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 17: Line 17:


== Examples ==
== Examples ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
; Make Bob responsible for whatever the object does
; Make Bob responsible for whatever the object does
Object.SetActorCause(Bob)
Object.SetActorCause(Bob)
</source>
</syntaxhighlight>
<br>
<br>
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
; Clear the actor cause, which means no one is responsible for the object anymore
; Clear the actor cause, which means no one is responsible for the object anymore
Object.SetActorCause(None)
Object.SetActorCause(None)
</source>
</syntaxhighlight>


== See Also ==
== See Also ==
*[[ObjectReference Script]]
*[[ObjectReference Script]]

Navigation menu