SetAlert - Actor

From Creation Kit
Jump to: navigation, search

Member of: Actor Script

Set or clear this actor's alerted state.

Syntax

Function SetAlert(bool abAlerted = true) native

Parameters

  • abAlerted: Whether to set or clear the alerted state.
    • Default: True

Return Value

None.

Examples

; Set Nate to be alerted
Nate.SetAlert()


; Clear Nate's alerted status
Nate.SetAlert(false)

Note

There is a problem with calling SetAlert on the player (Game.GetPlayer().SetAlert(true)). Once called, it's not possible to use the forge any more. Instead an equip animation will be played repeatedly.

See Also