I have been playing around some more with the toolset and got stuck on an issue where I need to reset all the triggers in an area when I exit the area. I know it is possible to loop through all objects by using something like this:
object oObject = GetFirstObjectInArea();
while(GetIsObjectValid(oObject)) {
// do stuff here
oObject = GetNextObjectInArea();
}
This works, and it was the only solution I was able to come up with after searching the forums.
The problem with this is that it loops through every single object in the area which seems inefficient to me, so I'm wondering if it is possible to do a similar simple loop while limiting the scope by object type. Only looping through triggers (or any other object type) would make the script much more efficient in large areas.
Thanks in advance for helping out a newbie like me! ![]()





Retour en haut






