hand_tele
Vars | |
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 |
Procs | |
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 |
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:
- null, meaning either this hand tele hasn't been used yet, or the last place it was portalled to was removed.
- PORTAL_LOCATION_DANGEROUS, meaning the last place it teleported to was the "None (Dangerous)" location.
- A weakref to a /obj/machinery/computer/teleporter, meaning the last place it teleported to was a pre-setup location.
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