Difference between revisions of "GetWornItemMods - Actor"
Using slot index and not the slot number.
imported>Qazaaq (changed left hand constant) |
imported>Qazaaq (Using slot index and not the slot number.) |
||
Line 13: | Line 13: | ||
== Parameters == | == Parameters == | ||
*slotIndex: The [[Biped Slots|Biped Slot]] to check. | *slotIndex: The [[Biped Slots|Biped Slot]] index to check. | ||
== Return Value == | == Return Value == | ||
An array of all [[Object Mod|Object Mods]] obtained from the given [[Biped Slots|Biped Slot]], returns none if there is no item. | An array of all [[Object Mod|Object Mods]] obtained from the given [[Biped Slots|Biped Slot]] index, returns none if there is no item. | ||
== Examples == | == Examples == | ||
Line 25: | Line 25: | ||
int index = 0 | int index = 0 | ||
While (index < mods.Length) | While (index < mods.Length) | ||
Debug.Trace("Found the object mod '" + mods[index] + "' on slot " + LeftHand) | Debug.Trace("Found the object mod '" + mods[index] + "' on slot index " + LeftHand) | ||
index += 1 | index += 1 | ||
EndWhile | EndWhile | ||
Else | Else | ||
Debug.Trace("Slot " + LeftHand + " had no object mods.") | Debug.Trace("Slot index " + LeftHand + " had no object mods.") | ||
EndIf | EndIf | ||
</source> | </source> | ||
== Notes == | == Notes == | ||
None | |||
== See Also == | == See Also == |