Surface verbs react with the geometry surfaces. Some perform control and some are information based.
Clears the specified Adjoin flags. Surface Adjoin Flags
Use: ClearAdjoinFlags(surface,flags);
Clears specified Face Type flags. Face Type Flags
Use: ClearFaceType(face,flag); not used in cog, not sure.
Clears the specified surface flags. Surface Flags
Use: ClearSurfaceFlags(surface,flag);
Gets the surface Adjoin flags. Surface Adjoin Flags
Use: Flags = GetAdjoinFlags(surface); returns set flags.
Gets the geometry mode of surface. Geomerty Mode Flags
Use: Modeflag = GetFaceGeoMode(surface); returns geomode flags
Gets the lighting mode of the surface. Surface Light Mode Flags
Use: Mode = GetFaceLightMode(surface); returns light mode flag , not sure ,not used in cog
?
? Not used
Gets Face Type flags. Face Type Flags
Use: Type = GetFaceType(face); not used in cog, not sure.
Gets the number of vertices a face has.
Use : NumVertices = GetNumSurfaceVertices(face);
?
? Not used
Gets the surface animation id. Surface Animation Flags
Use: Id = GetSurfaceAnim(surface); returns the id number of animation
?
? not used
Gets the center of a surface.
Use: center = GetSurfaceCenter(surface); returns a vector representaion of the center of surface.
Gets the surface flags. Surface Flags
Use: flag = GetSurfaceFlags(surface); returns the set flags , not used in cog.
?
? not used
Gets the surface material
Use: mat = GetSurfaceMat(surface); returns surface mat ,not used in cog , not sure
Gets the normal of the surface.
Use: normal = GetSurfaceNormal(surface); returns a vector.
Gets the sector surface is in.
Use: sector = GetSurfaceSector(surface); returns sector reference.
Get the position of a vertex in a face
Use : vertex = GetSurfaceVertexPos(face, vertexindex); where vertexindex is from 0 to NumVertices - 1 (as returned by GetNumSurfaceVertices())
Gets the Mat cel number of the surface.
Use: cellnum = GetWallCel(surface); returns the cell num (starts at 0 for multicell mats)
Sets the specified Adjoin flags. Surface Adjoin Flags
Use: SetAdjoinFlags(surface,flags);
Sets the specified geometry mode of surface. Geomerty Mode Flags
Use: GetFaceGeoMode(surface,flags);
Sets the specified lighting mode of the surface. Surface Light Mode Flags
Use: SetFaceLightMode(surface.flags);
?
? not used
Sets specified Face Type flags. Face Type Flags
Use: SetFaceType(face,flag);
?
? not used
Sets the specified surface flags. Surface Flags
Use: SetSurfaceFlags(surface,flag);
Changes the light value of a surface over time
Use: SetSurfaceLight(surface, light, fade)
fade = fade time from 0 to light value
Sets a mat for surface.
Use: SetSurfaceMat(surface,mat);
Sets the surface mat to specified cel.
Use: SetWallCel(surface,cel);
?
? not used
Moves a surface texture (scroll).
Use: SlideWall(surface,direction vector,speed );
Stops a surface animation . Surface Animation Flags
Use: StopSurfaceAnim(surface);
Starts a surface animation. Surface Animation Flags
Use: SurfaceAnim(surface,fps,flags);
Starts a light animation on the surface.
Use; SurfaceLightAnim(surf, minLight flex, maxLight, period);