CountLinkedRefChain - ObjectReference: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
imported>Thingy Person
m (Convert source tags to syntaxhighlight)
 
Line 6: Line 6:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
int Function countLinkedRefChain(keyword apKeyword = None, int maxExpectedLinkedRefs = 100)
int Function countLinkedRefChain(keyword apKeyword = None, int maxExpectedLinkedRefs = 100)
ObjectReference CurrentLink = self
ObjectReference CurrentLink = self
Line 24: Line 24:
return NumLinkedRefs
return NumLinkedRefs
endFunction
endFunction
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 34: Line 34:


== Examples ==
== Examples ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
; Count the number of refs in a linked ref chain to us
; Count the number of refs in a linked ref chain to us
int numLinkedRefs = countLinkedRefChain()
int numLinkedRefs = countLinkedRefChain()
</source>
</syntaxhighlight>


== See Also ==
== See Also ==

Navigation menu