|Note: This feature is for ZScript only.|
BlockThingsIterator is a type of iterator used to search for entities that are capable of blocking. This excludes all actors with the NOBLOCKMAP flag. While there are fewer actors to search through, this iterator generates a lot of overhead which may slow down the game, while ThinkerIterator can also cause lag from searching through every single existing thinker. Caution against over-use is advised.
The following are members of the iterator. These must be accessed by using a . (period) between the iterator's name and the member.
|Actor||thing||The actor the iterator is currently checking.|
|Vector3||position||The map coordinates of thing.|
|Return Type||Function||Arguments (first to last)||Use/Arguments|
Initializes the iterator upon a pointer. Either this or CreateFromPos can be used.
Note: this function is static and should be called off the class name, i.e. BlockThingsIterator.Create(...).
Initializes the iterator upon a vector. Either this or Create can be used.
Note: this function is static and should be called off the class name, i.e. BlockThingsIterator.CreateFromPos(...).
|Thinker||Next||None||Cycles through the list of actors that are not in possession of the NOBLOCKMAP flag.|
|void||Reinit||None||Restarts the search.|