ApplyCommandEffect - ANDR PapyrusFunctions

From the CreationKit Wiki
Jump to navigation Jump to search

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[edit | edit source]

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

Examples[edit | edit source]

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

Parameters[edit | edit source]

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

Return Value[edit | edit source]

Whether the command was applied.

See Also[edit | edit source]