GetTriggerObjectCount - ObjectReference

From the CreationKit Wiki
Revision as of 19:10, 13 August 2012 by imported>Cipscis (Reverted edits by Heecf (talk) to last revision by Jlundin)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: ObjectReference Script (Papyrus)

Obtains the number of objects inside this trigger volume. (Obviously only works if this is actually a trigger and will error otherwise)

Syntax

int Function GetTriggerObjectCount() native

Parameters

None

Return Value

The number of objects currently inside the trigger volume.

Examples

; Is this trigger empty?
if GetTriggerObjectCount() == 0
  Debug.Trace("We have nothing inside!")
else
  Debug.Trace("Something is inside! Unleash DOOOM!")
endIf

See Also