These perform functions relating to geometry sectors.
Clears the specified flags. Sector Flags
Use: ClearSectorFlags(sector,flags);
Gets the first thing in sector. Also see NextThingInSector and PrevThingInSector.
Use: First = NextThingInSector(sector);
Gets the Number of surfaces in sector.
Use: Numof = GetNumSectorSurfaces(sector); Not used in cogs. Not sure.
Gets the Number of sector Vertices.
Use: NumOf = GetNumSectorVertices(sector); Returns the number of vertices in sector
Finds the center of a sector.
Use: center = GetSectorCenter(?); Not used in cogs ,not sure.
Gets the current color map for the sector. CMP Files
Use: ColorMapNum = GetsectorColorMap(sector); returns the index to the colormap in use.
Gets the sector flags. Sector Flags
Use: Flags = GetSectorFlags(sector); returns the sector flags
Gets the extra light value for sector.
Use: lightval = GetSectorLight(sector);returns the extralight value
Gets the number of players in sector.
Use: GetSectorPlayerCount(sector); ,Not sure , not used in cogs.
?
? Not used.
Gets the number of things in sector.
Use: GetSectorThingCount(sector,thing ?) ,not used , not sure .
Gets the sector thrust (velocity).
Use: speed = GetSectorThrust(sector); returns a vector.
Gets the rgb tint of a sector.
Use: rgb = GetSectorTint(sector); ,Not actualy used, suspect rgb is expressed like a vector.
Gets the position of a vertex.
Use: pos = GetSectorVertexPos(sector,vertex); returns a vector
Gets the next thing in sector. After FirstThingInSector finds something. Also see PrevThingInSector.
Use: Next = NextThingInSector(sector, previous thing ); Thing should be the last thing found or the return value of FirstThingInSector()
Gets the previous thing in sector. After FirstThingInSector finds something. Also see NextThingInSector.
Use: Previous = PrevThingInSector(sector, previous thing ); Thing should be a thing found.or the return value of FirstThingInSector()
Turns the rendering of adjoins on or off.
Use: SetSectorAdjoins(sector,Int); 1 = On , 0 = Off
Sets the current color map for the sector. CMP Files
Use: SetsectorColorMap(sector,colormap int);
Sets the specified flags. Sector Flags
Use: SetSectorFlags(sector,flags);
Sets the sector extra light.
Use: SetSectorLight(sector,light int,delay int);
Sets the sector Thrust (velocity).
Use: SetSectorThrust(sector,vector,speed int);
Set the tint of a sector.
Use: SetSectorTint(sector, rgb); ** rgb is expressed like a vector