GetNumItems - ObjectReference: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
imported>Zartar
m (Undo revision 39256 by Zartar (talk))
m (Convert source tags to syntaxhighlight)
 
Line 9: Line 9:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
Int Function GetNumItems() Native
Int Function GetNumItems() Native
</source>
</syntaxhighlight>


== Return Value ==
== Return Value ==
Line 18: Line 18:
== Examples ==
== Examples ==
* Check a single container.
* Check a single container.
<source lang="papyrus">Int iNumItems = MQ101AlduinREF.GetNumItems()</source>
<syntaxhighlight lang="papyrus">Int iNumItems = MQ101AlduinREF.GetNumItems()</syntaxhighlight>
* Set the weights of all ingredients in player's inventory to 0.1.
* Set the weights of all ingredients in player's inventory to 0.1.
<source lang="papyrus">Actor Property PlayerREF Auto
<syntaxhighlight lang="papyrus">Actor Property PlayerREF Auto


Event SomeEvent()
Event SomeEvent()
Line 35: Line 35:
EndIf
EndIf
EndWhile
EndWhile
EndFunction</source>
EndFunction</syntaxhighlight>


== Notes ==
== Notes ==

Navigation menu