SetAvoidPlayer - Actor
Revision as of 11:52, 19 November 2015 by imported>Plplecuyer (→Syntax =)
Member of: Actor Script
Tells actors whether they need to avoid the player when pathing. (By default, they do, so this does nothing relevant unless the abAvoid parameter is false.)
Created to support scenes where the player is meant to be an incorporeal observer, such as the "memory den" scenes in Fallout 4.
Syntax[edit | edit source]
Function SetAvoidPlayer(bool abAvoid = true) native
Parameters[edit | edit source]
- abAvoid : Whether to avoid the player when pathing.
- Default: True
Return Value[edit | edit source]
None.
Examples[edit | edit source]
; Set MemoryDenFigment so that it can follow its path right through the player.
MemoryDenFigment.SetAvoidPlayer( false )
Notes[edit | edit source]
This relies on the actor having an AI process, and thus will do nothing if used on a disabled actor. If you do need to use this on actors who are initially disabled, you must call it after they have been enabled.