Goonstation 13 - Modules - TypesVar Details - Proc Details

AI

Vars

alarmsList of currently active alarms
coreSkinThe icon_state for the outside non-screen bit of the core. icon_state is set to this in update_appearance() (which is called by New)
skinsListList of valid skins and their descriptions. Used for validation of setSkin()
termMutecontrols whether or not the ai will hear termos message notifications
viewport_limitMaximum number of viewports we can have open, unlimited vision was a bit silly

Procs

attackbymob/living/silicon/ai/playsound_local(var/atom/source, soundin, vol as num, vary, extrarange as num, pitch = 1, ignore_flag = 0, channel = VOLUME_CHANNEL_GAME)
capitalize_speechspecial behavior for AIs to make sure it still works in eyecam form
choose_nameLets the AI choose its own name. If renaming_mob is non-null, then that mob is allowed to rename the AI instead.
clearFaceOverlaysClears all overlays which constitute the displayed face/screen
process_moveMovement
setSkinCall with a valid skin icon state as string to set the skin to said icon state
soundToPlayerFor use when you want to play a sound to the AI player regardless of if it's in mainframe, eye, or shell Calls playsound_local(), use its syntax
textToPlayerFor use when you want to send text to the AI player regardless of it's in its mainframe, eye, or shell Calls show_text(), use its syntax
toggle_CPU_boltsfor dismantle action bar
update_terminalHandles connecting and disconnecting the AI from data terminals. Calling with disconnect or tryConnect is not required, but useful if you only want one to happen

Var Details

alarms

List of currently active alarms

coreSkin

The icon_state for the outside non-screen bit of the core. icon_state is set to this in update_appearance() (which is called by New)

skinsList

List of valid skins and their descriptions. Used for validation of setSkin()

termMute

controls whether or not the ai will hear termos message notifications

viewport_limit

Maximum number of viewports we can have open, unlimited vision was a bit silly

Proc Details

attackby

mob/living/silicon/ai/playsound_local(var/atom/source, soundin, vol as num, vary, extrarange as num, pitch = 1, ignore_flag = 0, channel = VOLUME_CHANNEL_GAME)

capitalize_speech

special behavior for AIs to make sure it still works in eyecam form

choose_name

Lets the AI choose its own name. If renaming_mob is non-null, then that mob is allowed to rename the AI instead.

clearFaceOverlays

Clears all overlays which constitute the displayed face/screen

process_move

Movement

setSkin

Call with a valid skin icon state as string to set the skin to said icon state

soundToPlayer

For use when you want to play a sound to the AI player regardless of if it's in mainframe, eye, or shell Calls playsound_local(), use its syntax

textToPlayer

For use when you want to send text to the AI player regardless of it's in its mainframe, eye, or shell Calls show_text(), use its syntax

toggle_CPU_bolts

for dismantle action bar

update_terminal

Handles connecting and disconnecting the AI from data terminals. Calling with disconnect or tryConnect is not required, but useful if you only want one to happen