ApplyCommandEffect - ANDR PapyrusFunctions

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.

SyntaxEdit

Bool Function ApplyCommandEffect(Actor akCaster, Actor akTarget) global native

ExamplesEdit

If ANDR_PapyrusFunctions.ApplyCommandEffect(BobRef, SteveRef)
	Debug.Trace("Bob applied a command effect on Steve.")
EndIf

ParametersEdit

  • akCaster: The commanding actor.
  • akTarget: The actor to command. Any previous commander is released first.

Return ValueEdit

Whether the command was applied.

See AlsoEdit