IsCrimeOrEnemy

From GECK
Jump to: navigation, search


A function added by the JohnnyGuitar NVSE Plugin version 4.10.

Description

Returns true if the game considers interacting with a calling reference a "hostile" action, performing the same checks that are used to determine red color of the crosshair or the activation prompt.

Syntax

[help]
(0/1:int) reference.IsCrimeOrEnemy

Example

int isHostile = JoeCobbREF.IsCrimeOrEnemy