byond - Modules - TypesVar Details - Proc Details

vehicle_module

Vars

action_icondmi for the action button
action_icon_stateicon_state for the action button
attach_delayTime it takes to attach.
attach_features_flagsBitfield flags of various features.
attach_iconIcon sheet of the attachment overlays
attachments_allowedAllowed attachment types
attachments_by_slotList of slots this attachment has.
can_attachProc typepath that is called when this is item is being attached to something. Returns TRUE if it can attach.
detach_delayTime it takes to detach.
on_attachProc typepath that is called when this is attached to something.
on_detachProc typepath that is called when this is detached from something.
parentReference to parent object.
pixel_shift_xPixel shift for the item overlay on the X axis.
pixel_shift_yPixel shift for the item overlay on the Y axis.
should_use_obj_appeareanceWhether the obj appearance for this attachment should be used for the action buttno
slotSlot the attachment is able to occupy.
starting_attachmentsStarting attachments that are spawned with this.
toggle_signalThe signal for this module if it can toggled

Procs

activateCalled on ui_action_click. Used for activating the module.
can_attachCalled before a module is attached.
on_attachCalled when the module is added to the armor.
on_buckleAdds actions if the mob has the correct flag
on_detachCalled when the module is removed from the armor.
on_unbuckleRemoves actions if the mob had them

Var Details

action_icon

dmi for the action button

action_icon_state

icon_state for the action button

attach_delay

Time it takes to attach.

attach_features_flags

Bitfield flags of various features.

attach_icon

Icon sheet of the attachment overlays

attachments_allowed

Allowed attachment types

attachments_by_slot

List of slots this attachment has.

can_attach

Proc typepath that is called when this is item is being attached to something. Returns TRUE if it can attach.

detach_delay

Time it takes to detach.

on_attach

Proc typepath that is called when this is attached to something.

on_detach

Proc typepath that is called when this is detached from something.

parent

Reference to parent object.

pixel_shift_x

Pixel shift for the item overlay on the X axis.

pixel_shift_y

Pixel shift for the item overlay on the Y axis.

should_use_obj_appeareance

Whether the obj appearance for this attachment should be used for the action buttno

slot

Slot the attachment is able to occupy.

starting_attachments

Starting attachments that are spawned with this.

toggle_signal

The signal for this module if it can toggled

Proc Details

activate

Called on ui_action_click. Used for activating the module.

can_attach

Called before a module is attached.

on_attach

Called when the module is added to the armor.

on_buckle

Adds actions if the mob has the correct flag

on_detach

Called when the module is removed from the armor.

on_unbuckle

Removes actions if the mob had them