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

hand_tele

Vars

active_portal_pairsList of portal pairs created by this hand tele
last_portal_locationRepresents the last place we teleported to, for making quick portals. Can be in the following states:
max_portal_pairsMaximum concurrent active portal pairs allowed

Procs

can_teleport_notifiesChecks for whether creating a portal in our area is allowed or not, returning FALSE when in a NOTELEPORT area, an away mission or when the user is not on a turf. Is, for some reason, separate from the teleport target's check in try_create_portal_to()
on_portal_destroyRemoves a destroyed portal from active_portal_pairs list
on_teleporter_new_targetClears last teleport location when the teleporter providing our target location changes its target
try_create_portal_toTakes either PORTAL_LOCATION_DANGEROUS or an /obj/machinery/computer/teleport/computer.
try_dispel_portalChecks if the targeted portal was created by us, then causes it to expire, removing it

Var Details

active_portal_pairs

List of portal pairs created by this hand tele

last_portal_location

Represents the last place we teleported to, for making quick portals. Can be in the following states:

max_portal_pairs

Maximum concurrent active portal pairs allowed

Proc Details

can_teleport_notifies

Checks for whether creating a portal in our area is allowed or not, returning FALSE when in a NOTELEPORT area, an away mission or when the user is not on a turf. Is, for some reason, separate from the teleport target's check in try_create_portal_to()

on_portal_destroy

Removes a destroyed portal from active_portal_pairs list

on_teleporter_new_target

Clears last teleport location when the teleporter providing our target location changes its target

try_create_portal_to

Takes either PORTAL_LOCATION_DANGEROUS or an /obj/machinery/computer/teleport/computer.

try_dispel_portal

Checks if the targeted portal was created by us, then causes it to expire, removing it