vehicle_module

Vars | |
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 |
Procs | |
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 |
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