/tg/ Station 13 - Modules - TypesVar Details - Proc Details

cameranet

Vars

obscuredThe image given to the effect in vis_contents on AI clients
vis_contents_opaquethis object is the static that ais see on obscured turfs, added to the turfs vis_contents

Procs

addCameraAdd a camera to a chunk.
checkCameraVisWill check if a mob is on a viewable turf. Returns 1 if it is, otherwise returns 0.
chunkGeneratedChecks if a chunk has been Generated in x, y, z.
majorChunkChangeNever access this proc directly!!!! This will update the chunk and all the surrounding chunks. It will also add the atom to the cameras list if you set the choice to 1. Setting the choice to 0 will remove the camera from the chunks. If you want to update the chunks around an object, without adding/removing a camera, use choice 2.
removeCameraRemoves a camera from a chunk.
updatePortableCameraUsed for Cyborg cameras. Since portable cameras can be in ANY chunk.
updateVisibilityUpdates the chunks that the turf is located in. Use this when obstacles are destroyed or when doors open.
visibilityUpdates what the aiEye can see. It is recommended you use this when the aiEye moves or it's location is set.

Var Details

obscured

The image given to the effect in vis_contents on AI clients

vis_contents_opaque

this object is the static that ais see on obscured turfs, added to the turfs vis_contents

Proc Details

addCamera

Add a camera to a chunk.

checkCameraVis

Will check if a mob is on a viewable turf. Returns 1 if it is, otherwise returns 0.

chunkGenerated

Checks if a chunk has been Generated in x, y, z.

majorChunkChange

Never access this proc directly!!!! This will update the chunk and all the surrounding chunks. It will also add the atom to the cameras list if you set the choice to 1. Setting the choice to 0 will remove the camera from the chunks. If you want to update the chunks around an object, without adding/removing a camera, use choice 2.

removeCamera

Removes a camera from a chunk.

updatePortableCamera

Used for Cyborg cameras. Since portable cameras can be in ANY chunk.

updateVisibility

Updates the chunks that the turf is located in. Use this when obstacles are destroyed or when doors open.

visibility

Updates what the aiEye can see. It is recommended you use this when the aiEye moves or it's location is set.