Anyone see what could be wrong with this? It never seems to trigger:
.
aadpTraps is a formlist of the hazards forms.
.
if (Game.FindClosestReferenceOfAnyTypeInListFromRef(aadpTraps, Playerref, 1200.0))
debug.messagebox("Hazzard near by.")
endif
Anyone see what could be wrong with this? It never seems to trigger:
.
aadpTraps is a formlist of the hazards forms.
.
if (Game.FindClosestReferenceOfAnyTypeInListFromRef(aadpTraps, Playerref, 1200.0))
debug.messagebox("Hazzard near by.")
endif
Try:
ObjectReference AnyTrap = Game.FindClosestReferenceOfAnyTypeInListFromRef(aadpTraps, Playerref, 1200.0)
if AnyTrap == True
debug.messagebox("Hazzard near by.")
endif
ObjectReferences should return true as long as they aren't None. http://www.creationkit.com/index.php?title=Cast_Reference