Difference between revisions of "GetWornItem - Actor"

18 bytes added ,  16:29, 26 April 2017
Using slot index and not the slot number.
imported>Qazaaq
(Fixed details about the difference in slot index and slot number)
imported>Qazaaq
(Using slot index and not the slot number.)
Line 12: Line 12:


== Parameters ==
== Parameters ==
*slotIndex: The [[Biped Slots|Biped Slot]] to check.
*slotIndex: The [[Biped Slots|Biped Slot]] index to check.
*firstPerson: Specifies whether first or third person information for the [[Biped Slots|Biped Slot]] should be returned.
*firstPerson: Specifies whether first or third person information for the [[Biped Slots|Biped Slot]] should be returned.


== Return Value ==
== Return Value ==
The [[WornItem Struct - Actor|WornItem]] for the given [[Biped Slots|Biped Slot]].
The [[WornItem Struct - Actor|WornItem]] for the given [[Biped Slots|Biped Slot]] index.


== Examples ==
== Examples ==
Line 37: Line 37:
while (index < end)
while (index < end)
     Actor:WornItem wornItem = Player.GetWornItem(index)
     Actor:WornItem wornItem = Player.GetWornItem(index)
     Debug.Trace("Slot: " + index + ", " + wornItem)
     Debug.Trace("Slot Index: " + index + ", " + wornItem)
     index += 1
     index += 1
EndWhile
EndWhile
Anonymous user