Background for Fallout 4
Member of the ReferenceAlias script
boolfunctionTryToStopCombat()

Description

Wiki Description

This is a convenient way to have an actor in an alias stop combat without calling ReferenceAlias.GetActorReference() on it. It's mostly useful in cases where you have lots of aliases that may or may not be filled and you want to call Actor.StopCombat() on them without having to test for an actor being present first.

Documentation Comment

Convenience function - jduvall


Caveats


Examples

; Try to get the bandit to stop combat
if BanditAlias.TryToStopCombat()
  Debug.Trace("Bandit stopped combat!")
else
  Debug.Trace("No banded to stop...")
endIf

Auto-Generated Example

bool returnedValue = myReferenceAlias__toCallFunctionOn.TryToStopCombat()

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.