Difference between revisions of "IsActor"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Geckbot
m (Robot: Automated text replacement (-\[\[Category:(.*?)Functions\]\] +Category:\1Functions\nCategory:\1Functions (GECK 1.0)))
imported>Yukichigai
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function
{{Function
|origin = GECK1
|CSWikiPage = IsActor
|summary = Returns 1 if the calling reference is an Actor
|origin = GECK1
|referenceType = RefID
|summary = Returns 1 if the calling reference is an Actor (a Creature or NPC)
|example = set rContainer to GetContainer
|name = IsActor
|referenceType = [ObjectRefID]
|returnVal = 0, 1
|returnType = int
|example = set rContainer to GetContainer
  if rContainer.IsActor
  if rContainer.IsActor
     ; Some code
     ; Some code
Line 10: Line 14:
The code within the if statement will run if the scripted object is in an Actor's inventory
The code within the if statement will run if the scripted object is in an Actor's inventory
}}
}}


==See Also==
==See Also==
[[GetIsCreature]]
*[[GetIsCreature]]


[[Category: Functions]]
[[Category: Functions]]
[[Category: Functions (GECK 1.0)]]
[[Category: Functions (GECK 1.1)]]
[[Category: Actor State Functions]]
[[Category: Actor State Functions]]
[[Category: Actor State Functions (GECK 1.0)]]
[[Category: Actor State Functions (GECK 1.1)]]
[[Category: Condition Functions]]
[[Category: Condition Functions]]
[[Category: Condition Functions (GECK 1.0)]]
[[Category: Condition Functions (GECK 1.1)]]

Latest revision as of 19:48, 14 September 2013

< [[::Category:Functions|Category:Functions]]

Link to TES4 Construction Set Wiki: IsActor.

A function included in the GECK version 1.1.0.36.

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