Background for Fallout 4
Member of the ObjectReference script
intfunctionGetTriggerObjectCount()Native

Description

Wiki Description

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

Documentation Comment

Get the number of objects inside this trigger (throws warning if not a trigger)


Caveats


Examples

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

Auto-Generated Example

int returnedValue = myObjectReference__toCallFunctionOn.GetTriggerObjectCount()

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.