Complete Example Scripts: Difference between revisions

Jump to navigation Jump to search
m
imported>JustinOther
m (→‎A Trigger That Detects When The Player Enters: GetPlayer swapped with PlayerREF property for consistency)
imported>JustinOther
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 == Game.GetPlayer()
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)
Anonymous user

Navigation menu