the cog crashes the game, but parsec shows no errors, and i cant see the problem.
------------------
I am pjb.
Another post......
another moment of my life wasted.....
at least i made a level.
PJB's JK page's
-the PJB jedi rule book-
rule one, "never trust a bartender with bad grammar"-kyle katarn in JO
Rule Two, "Gravity is a crule misstress" -kyle katarn in MotS, and the alternatior MK I in AJTD
Code:
# Jedi Knight Cog Script # # pjb_crate.cog # # a cog to move a crate though sever positons, convayer belts and one elivatior. # # # This Cog is Not supported by LucasArts Entertainment Co symbols template cre1 template cre2 thing start message startup surface conv1 thing elivatior vector vec int box=-1 local vector svec local int poo=0 local int newbox=-1 local message arrived end # ======================================================================================== code startup: svec=VectorSet(0,0,0); create: if(poo==0) { newbox=CreateThing(cre1,start); CaptureThing(newbox); MoveToFrame(newbox,0,4); } if(poo==1) { newbox=CreateThing(cre2,start); CaptureThing(newbox); MoveToFrame(newbox,0,4); } return; arrived: box=GetSenderRef(); movetoframe(box,1,10); if(GetCurFrame(box) == 1) { MoveToFrame(box,2,4); slideSurface(conv1, vec, 4); } else if (GetCurFrame(box) == 2) { MoveToFrame(box,3,4); slideSurface(conv1, svec, 4); MoveToFrame(elivatior,0,4); } else if (GetCurFrame(box) == 3) { MoveToFrame(box,4,4); MoveToFrame(elivatior,1,4); } else if (GetCurFrame(box) == 4) { MoveToFrame(box,5,4); } else if (GetCurFrame(box) == 5) { MoveToFrame(box,6,4); } else if (GetCurFrame(box) == 6) { MoveToFrame(box,7,4); } else if (GetCurFrame(box) == 7) { DestroyThing(box); if(poo==0) poo=1; else if(poo==1) poo=0; call create; } return; end # ........................................................................................
------------------
I am pjb.
Another post......
another moment of my life wasted.....
at least i made a level.
PJB's JK page's
-the PJB jedi rule book-
rule one, "never trust a bartender with bad grammar"-kyle katarn in JO
Rule Two, "Gravity is a crule misstress" -kyle katarn in MotS, and the alternatior MK I in AJTD
I am Darth PJB!
well, go on, run away!
i have a plastic lightsaber and a jedi cape.. am i a nerd?
If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?
well, go on, run away!
i have a plastic lightsaber and a jedi cape.. am i a nerd?
If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?