Mordeth
Administrator
Posts: 1704
Registered: 05-00 |
In Eternity's default start map, there's a function that allows for a "sliding door" trick:
code:
public SDoorCB()
{
static tag = 15;
SectorSetSpecial(2048, tag);
FloorAction(false, PlaneUp, FLOORSPEED, FNoChg, tag, 0, FtoLnF);
tag += 1;
if(tag < 21)
SetCallback("SDoorCB", WAIT_DELAY, 1);
}
Couple of questions about this... firstly, why the use of semi-colons? Thought these are optional for Small. More importantly, why use SetCallback and not eg. a "for" loop?
|