Complete Example Scripts: Difference between revisions
Jump to navigation
Jump to search
m
→Usage of Arrays to Make Scripts Compact: '> 0' vs. '>= 0'. If iIndex == 0, element -1 is run through the mill and it won't exist.
imported>Fg109 mNo edit summary |
imported>JustinOther m (→Usage of Arrays to Make Scripts Compact: '> 0' vs. '>= 0'. If iIndex == 0, element -1 is run through the mill and it won't exist.) |
||
| Line 276: | Line 276: | ||
If akActionRef == Game.GetPlayer() | If akActionRef == Game.GetPlayer() | ||
Int iIndex = DraugrArray.Length ; Will return 30 | Int iIndex = DraugrArray.Length ; Will return 30 | ||
While iIndex > | While iIndex > 0 | ||
iIndex -= 1 ; 29'th element is 30'th Draugr | iIndex -= 1 ; 29'th element is 30'th Draugr | ||
Actor rDraugr = DraugrArray[iIndex] | Actor rDraugr = DraugrArray[iIndex] | ||