Re: Antony, JM, help!!


[ Follow Ups ] [ Post Followup ] [ The Massassi Temple Message Board ]

Posted by Antony Espindola on July 16, 1998 at 04:49:02:

In Reply to: Re: Antony, JM, help!! posted by Myrddraal on July 16, 1998 at 01:03:30:

Yep, JM's right. Don't use "surface" as the name for anything as
it's a reserved word meaning it thinks you're trying to
assign a type identifier to it!

He also mentioned that you could still pass through the surface
even if it's textured. You need to set the flags for the
surface otherwise you could walk through it even if the texture
is there.

If you're writing this COG for JK, use "flex" for non-integer
numbers otherwise use the "float" designation in MotS.

You also missed a semi-colon (";") from the end of "Return" at the end.

Apart from that, it looks like you're doing fine!

symbols
float delay=5.5
surface surf
int diswall=0 local
end

code
activated:
if (diswall == 0)
{
diswall = 1;
setfacegeomode(surf,0);
sleep(delay);
setfacegeomode(surf,4);
diswall = 0;
}
return;
end

Hope you get it to work!



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ The Massassi Temple Message Board ]