1,482
edits
imported>Thingy Person (→Syntax) |
m (Convert source tags to syntaxhighlight) |
||
| Line 6: | Line 6: | ||
== Syntax == | == Syntax == | ||
< | <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 | ||
</ | </syntaxhighlight> | ||
== Parameters == | == Parameters == | ||
| Line 34: | Line 34: | ||
== Examples == | == Examples == | ||
< | <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() | ||
</ | </syntaxhighlight> | ||
== See Also == | == See Also == | ||