This cog takes a 3do object and starts spinning it irradicately,...too irradicately. I keep changing it but it still doesnt wait for the timer to attach the thing and pivot the 3do. Could someone help me with some insight on what this code is actually doing?
symbols
sector sec1
thing ghost0
thing ghost1
thing ghost2
thing ghost3
thing walkway
int curtemplate=-1 local
flex time desc=speed
flex countdown = 30.0
message startup
message arrived
message timer
end
# ============================================================
code
arrived:
JumptoFrame(walkway, 0, sec1);
startup:
curtemplate=ghost0[rand()*4];
AttachThingtoThingex(walkway, curtemplate, 0x8);
RotatePivot(curtemplate, 0, Time);
SetTimer(countdown);
return;
timer:
WaitForStop(walkway);
DetachThing(walkway);
curtemplate=ghost0[rand()*4];
AttachThingtoThingex(walkway, ghost0[rand()*4], 0x8);
RotatePivot(curtemplate, 0, Time);
SetTimer(countdown);
return;
end
#=============================================================
[This message has been edited by Gelatinous_Drool (edited March 01, 2002).]
symbols
sector sec1
thing ghost0
thing ghost1
thing ghost2
thing ghost3
thing walkway
int curtemplate=-1 local
flex time desc=speed
flex countdown = 30.0
message startup
message arrived
message timer
end
# ============================================================
code
arrived:
JumptoFrame(walkway, 0, sec1);
startup:
curtemplate=ghost0[rand()*4];
AttachThingtoThingex(walkway, curtemplate, 0x8);
RotatePivot(curtemplate, 0, Time);
SetTimer(countdown);
return;
timer:
WaitForStop(walkway);
DetachThing(walkway);
curtemplate=ghost0[rand()*4];
AttachThingtoThingex(walkway, ghost0[rand()*4], 0x8);
RotatePivot(curtemplate, 0, Time);
SetTimer(countdown);
return;
end
#=============================================================
[This message has been edited by Gelatinous_Drool (edited March 01, 2002).]