Skip to content

NPC Collision detection

ModCS.Bullet.TouchLeftWall()

ModCS.Bullet.TouchLeftWall(bul)

Returns true if bul is touching a left wall.

ModCS.Bullet.TouchRightWall()

ModCS.Bullet.TouchRightWall(bul)

Returns true if bul is touching a right wall.

ModCS.Bullet.TouchCeiling()

ModCS.Bullet.TouchCeiling(bul)

Returns true if bul is touching a ceiling.

ModCS.Bullet.TouchFloor()

ModCS.Bullet.TouchFloor(bul)

Returns true if bul is touching a floor.

ModCS.Bullet.TouchBottomSlopeRight()

ModCS.Bullet.TouchBottomSlopeRight(bul)

Returns true if bul is touching a bottom right slope.

ModCS.Bullet.TouchBottomSlopeLeft()

ModCS.Bullet.TouchBottomSlopeLeft(bul)

Returns true if bul is touching a bottom left slope.

ModCS.Bullet.TouchTopSlopeRight()

ModCS.Bullet.TouchTopSlopeRight(bul)

Returns true if bul is touching a top right slope.

ModCS.Bullet.TouchTopSlopeLeft()

ModCS.Bullet.TouchTopSlopeLeft(bul)

Returns true if bul is touching a top left slope.

ModCS.Bullet.TouchTile()

ModCS.Bullet.TouchTile(bul)

Returns true if bul is touching any type of collision tile.