IsActor

From GECK
Jump to: navigation, search


A function included in the GECK for Fallout 3.

Description

Returns 1 if the calling reference is an Actor (a Creature or NPC)

Syntax

[help]
(0, 1:int) [ObjectRefID].IsActor

Example

set rContainer to GetContainer
if rContainer.IsActor
    ; Some code
endif

The code within the if statement will run if the scripted object is in an Actor's inventory

See Also