Function |
Syntax | CastMORay( * The starting position.
- The vector to trace along.
- An MOID to ignore. Any child MO's of this MOID will also be ignored.
- To enable ignoring of all MOIDs associated with an object of a specific team which also has team ignoring enabled itself.
- A specific material ID to ignore hits with.
- Whether to ignore all terrain hits or not.
- For every pixel checked along the line, how many to skip between them for optimization reasons. 0 = every pixel is checked. )
|
Description: |
Traces along a vector and returns MOID of the first non-ignored non-NoMOID MO encountered. If a non-air terrain pixel is encountered first, g_NoMOID will be returned. |
Returns | The MOID of the hit non-ignored MO, or g_NoMOID if terrain or no MO was hit. |