NPC Collision detection
ModCS.Npc.TouchLeftWall()
ModCS.Npc.TouchLeftWall(npc)
Returns true if npc
is touching a left wall.
ModCS.Npc.TouchRightWall()
ModCS.Npc.TouchRightWall(npc)
Returns true if npc
is touching a right wall.
ModCS.Npc.TouchCeiling()
ModCS.Npc.TouchCeiling(npc)
Returns true if npc
is touching a ceiling.
ModCS.Npc.TouchFloor()
ModCS.Npc.TouchFloor(npc)
Returns true if npc
is touching a floor.
ModCS.Npc.TouchSlopeRight()
ModCS.Npc.TouchSlopeRight(npc)
Returns true if npc
is touching a right slope.
ModCS.Npc.TouchSlopeLeft()
ModCS.Npc.TouchSlopeLeft(npc)
Returns true if npc
is touching a left slope.
ModCS.Npc.TouchTile()
ModCS.Npc.TouchTile(npc)
Returns true if npc
is touching any type of collision tile.
ModCS.Npc.TouchWater()
ModCS.Npc.TouchWater(npc)
Returns true if npc
is touching water.
ModCS.Npc.TouchPlayer()
ModCS.Npc.TouchPlayer(npc)
Returns true if npc
is touching the player.
ModCS.Npc.HitFlag()
ModCS.Npc.HitFlag(npc, flag)
Returns true if the npc
has the hit_flag
, "flag
" active.