This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
functions:newtid [2017/03/19 18:19] – korshun | functions:newtid [2017/03/19 18:21] – korshun | ||
---|---|---|---|
Line 28: | Line 28: | ||
And NewTid() will return safe tids without any parameters required. NewTid() will prefer Zandronum-safe tids (below 32767) and only switch to Zandronum-unsafe tids if all safe tids are occupied, which can only happen if you have spawned an insane amount of actors with different tids. | And NewTid() will return safe tids without any parameters required. NewTid() will prefer Zandronum-safe tids (below 32767) and only switch to Zandronum-unsafe tids if all safe tids are occupied, which can only happen if you have spawned an insane amount of actors with different tids. | ||
- | ==== NewTid | + | ===== Examples |
+ | Just use NewTid like UniqueTid without specifying any error-prone boundaries: | ||
+ | < | ||
+ | int tid = NewTid(); | ||
+ | Spawn(" | ||
+ | </ | ||
- | Returns a new safe tid. |