SetAlert - Actor

Revision as of 08:48, 19 March 2012 by imported>Fore
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: Actor Script

Set or clear this actor's alerted state.

SyntaxEdit

Function SetAlert(bool abAlerted = true) native

ParametersEdit

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

Return ValueEdit

None.

ExamplesEdit

; Set Nate to be alerted
Nate.SetAlert()


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

NoteEdit

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 AlsoEdit