Difference between revisions of "GetTriggerObjectCount - ObjectReference"
Jump to navigation
Jump to search
imported>Heecf |
imported>Cipscis |
||
Line 1: | Line 1: | ||
[[Category:Scripting]] | |||
[[Category:Papyrus]] | |||
'''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 == | |||
<source lang="papyrus"> | |||
int Function GetTriggerObjectCount() native | |||
</source> | |||
== Parameters == | |||
None | |||
== Return Value == | |||
The number of objects currently inside the trigger volume. | |||
== Examples == | |||
<source lang="papyrus"> | |||
; Is this trigger empty? | |||
if GetTriggerObjectCount() == 0 | |||
Debug.Trace("We have nothing inside!") | |||
else | |||
Debug.Trace("Something is inside! Unleash DOOOM!") | |||
endIf | |||
</source> | |||
== See Also == | |||
*[[ObjectReference Script]] | |||
*[[OnTriggerEnter - ObjectReference]] | |||
*[[OnTriggerLeave - ObjectReference]] | |||
Latest revision as of 19:10, 13 August 2012
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[edit | edit source]
int Function GetTriggerObjectCount() native
Parameters[edit | edit source]
None
Return Value[edit | edit source]
The number of objects currently inside the trigger volume.
Examples[edit | edit source]
; Is this trigger empty?
if GetTriggerObjectCount() == 0
Debug.Trace("We have nothing inside!")
else
Debug.Trace("Something is inside! Unleash DOOOM!")
endIf