ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:newtid

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
functions:newtid [2017/03/19 18:19] korshunfunctions: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: 
 +<code> 
 +int tid = NewTid(); 
 +Spawn("SomeActor", x, y, z, tid, angle); 
 +</code> 
  
  
-Returns a new safe tid. 
functions/newtid.txt · Last modified: 2017/04/15 17:29 by korshun