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

worn_feature_offset

A datum for controlling how to position items on an unusually offset body part For instance if you have an asymmetrical head, hats might need to be offset to one side

Vars

attached_partWhat are we attached to
feature_keyKey used to identify what this offset applies to
offset_xOffsets to apply on the x axis for each direction
offset_yOffsets to apply on the y axis for each direction
ownerOwner of mob we are attached to, could be null on a severed limb

Procs

apply_offsetApplies the current offset to a provided overlay image
changed_ownerWhen the owner of the bodypart changes, update our signal registrations
get_offsetReturns the current offset which should be used for this feature
on_dir_changeWhen we change direction, re-apply the offset
on_owner_deletedIf the owner is deleted, stop updating

Var Details

attached_part

What are we attached to

feature_key

Key used to identify what this offset applies to

offset_x

Offsets to apply on the x axis for each direction

offset_y

Offsets to apply on the y axis for each direction

owner

Owner of mob we are attached to, could be null on a severed limb

Proc Details

apply_offset

Applies the current offset to a provided overlay image

changed_owner

When the owner of the bodypart changes, update our signal registrations

get_offset

Returns the current offset which should be used for this feature

on_dir_change

When we change direction, re-apply the offset

on_owner_deleted

If the owner is deleted, stop updating