Complete Example Scripts: Difference between revisions
Jump to navigation
Jump to search
m
→Cycle Through a List of Objects and Perform an Action on Each Object(FormLists): GetPlayer swapped with PlayerREF for consistency
imported>JustinOther m (→A Trigger That Detects When The Player Enters: GetPlayer swapped with PlayerREF property for consistency) |
imported>JustinOther m (→Cycle Through a List of Objects and Perform an Action on Each Object(FormLists): GetPlayer swapped with PlayerREF for consistency) |
||
| Line 131: | Line 131: | ||
Int iIndex | Int iIndex | ||
ObjectReference Reference | ObjectReference Reference | ||
Actor Property PlayerREF Auto ; Least 'expensive' way to refer to the player | |||
FormList Property ListOfObjectsFLST Auto ; see notes after script for more info on this property | FormList Property ListOfObjectsFLST Auto ; see notes after script for more info on this property | ||
Event OnTriggerEnter(ObjectReference akActionRef) | Event OnTriggerEnter(ObjectReference akActionRef) | ||
If akActionRef == | If akActionRef == PlayerREF | ||
iIndex = ListOfObjectsFLST.GetSize() ; Indices are offset by 1 relative to size | iIndex = ListOfObjectsFLST.GetSize() ; Indices are offset by 1 relative to size | ||
While(iIndex > 0) | While(iIndex > 0) | ||