GetIsAlignment

From GECK
Jump to: navigation, search


A function included in the GECK for Fallout 3.

Description

Tests if a selected actor has a specified alignment (Good, Evil, Neutral). The function returns a 1 if the alignment matches and returns 0 if it does not.

Syntax

[help]
(isAlignment:int) [actor:ref].GetIsAlignment alignment:string

Example

FlashRef.GetIsAlignment Neutral

Returns a 1, because Flash has a neutral alignment.

Alignment Values

  • VeryGood
  • Good
  • Neutral
  • Evil
  • VeryEvil