ApplyCommandEffect - ANDR PapyrusFunctions: Difference between revisions

Jump to navigation Jump to search
m
<source> is deprecated
(Created page with "Category:Scripting Category:Papyrus '''Member of:''' ANDR_PapyrusFunctions Script Makes akTarget a commanded actor of akCaster, so it follows and fights for them. Unlike vanilla, works on living, non-summoned actors and for non-player casters. == Syntax == <source lang="papyrus"> Bool Function ApplyCommandEffect(Actor akCaster, Actor akTarget) global native </source> == Examples == <source lang="papyrus"> If ANDR_PapyrusFunctions.ApplyCommandEffect(BobRef,...")
 
m (<source> is deprecated)
 
Line 6: Line 6:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
Bool Function ApplyCommandEffect(Actor akCaster, Actor akTarget) global native
Bool Function ApplyCommandEffect(Actor akCaster, Actor akTarget) global native
</source>
</syntaxhighlight>
== Examples ==
== Examples ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
If ANDR_PapyrusFunctions.ApplyCommandEffect(BobRef, SteveRef)
If ANDR_PapyrusFunctions.ApplyCommandEffect(BobRef, SteveRef)
Debug.Trace("Bob applied a command effect on Steve.")
Debug.Trace("Bob applied a command effect on Steve.")
EndIf
EndIf
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==

Navigation menu