Advertisement
ijontichy

<stdin>

Nov 4th, 2012
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. function int defaultTID(int def)
  2. {
  3. int tid = ActivatorTID();
  4.  
  5. if (ThingCount(0, tid) == 1) { return tid; }
  6.  
  7. tid = def;
  8. if (def <= 0) { tid = unusedTID(17000, 27000); }
  9.  
  10. Thing_ChangeTID(0, tid);
  11. ACS_ExecuteAlways(DEFAULTTID_SCRIPT, 0, tid,0,0);
  12.  
  13. return tid;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement