Difference between revisions of "SetAlert - Actor"
Jump to navigation
Jump to search
imported>Rhavlovick m (1 revision: Clobber re-import by Henning) |
imported>Fore m |
||
Line 27: | Line 27: | ||
Nate.SetAlert(false) | Nate.SetAlert(false) | ||
</source> | </source> | ||
== 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 == | == See Also == | ||
*[[Actor Script]] | *[[Actor Script]] | ||
*[[IsAlerted - Actor]] | *[[IsAlerted - Actor]] |
Latest revision as of 08:48, 19 March 2012
Member of: Actor Script
Set or clear this actor's alerted state.
Syntax[edit | edit source]
Function SetAlert(bool abAlerted = true) native
Parameters[edit | edit source]
- abAlerted: Whether to set or clear the alerted state.
- Default: True
Return Value[edit | edit source]
None.
Examples[edit | edit source]
; Set Nate to be alerted
Nate.SetAlert()
; Clear Nate's alerted status
Nate.SetAlert(false)
Note[edit | edit source]
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.