Skip to content

ModCS.Camera

The ModCS.Camera namespace contains functions related to the in-game camera.

ModCS.Camera.SetTarget()

ModCS.Camera.SetTarget(obj)

Sets the camera target to Game object obj (Can be ModCS.Player, a ModCS.Npc, a ModCS.Caret or a ModCS.Bullet)

ModCS.Camera.SetDelay()

ModCS.Camera.SetDelay(x)

Sets the camera delay to x (Default is 16).

ModCS.Camera.Reset()

ModCS.Camera.Reset()

Resets the camera position to the player.

ModCS.Camera.GetXPos()

ModCS.Camera.GetXPos()

Returns the camera's X axis position in Pixel Units.

ModCS.Camera.GetYPos()

ModCS.Camera.GetYPos()

Returns the camera's Y axis position in Pixel Units.

ModCS.Camera.SetQuake()

ModCS.Camera.SetQuake(time)

Makes the camera shake for time ticks.