Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function int defaultTID(int def)
- {
- int tid = ActivatorTID();
- if (ThingCount(0, tid) == 1) { return tid; }
- tid = def;
- if (def <= 0) { tid = unusedTID(17000, 27000); }
- Thing_ChangeTID(0, tid);
- ACS_ExecuteAlways(DEFAULTTID_SCRIPT, 0, tid,0,0);
- return tid;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement