IsActorEvil

From GECK
Jump to: navigation, search


A function included in the GECK for Fallout 3.

Description

Returns 1 if the calling actor belongs to at least one evil faction and no non-evil factions.

Syntax

[help]
(bool) [actor:ref].IsActorEvil

Example

if BuddyRef.IsActorEvil
;do evil stuff 

Notes

  • This function only works on NPCs, not creatures. No creatures are considered evil, regardless of which factions they belong to.