attachment
![code/datums/components/attachment.dm 1](git.png)
Vars | |
actions | Unused...Also a little broken.. |
---|---|
attach_features_flags | various yes no flags associated with attachments. See defines for these: [_DEFINES/guns.dm] |
attachment_toggle_action | Generated if the attachment can toggle, sends COMSIG_ATTACHMENT_TOGGLE |
on_preattack | Called on the parents preattack |
slot | Slot the attachment goes on, also used in descriptions so should be player readable |
valid_parent_types | Unused so far, should probally handle it in the parent unless you have a specific reason |
Var Details
actions
![code/datums/components/attachment.dm 14](git.png)
Unused...Also a little broken..
attach_features_flags
![code/datums/components/attachment.dm 5](git.png)
various yes no flags associated with attachments. See defines for these: [_DEFINES/guns.dm]
attachment_toggle_action
![code/datums/components/attachment.dm 18](git.png)
Generated if the attachment can toggle, sends COMSIG_ATTACHMENT_TOGGLE
on_preattack
![code/datums/components/attachment.dm 12](git.png)
Called on the parents preattack
slot
![code/datums/components/attachment.dm 3](git.png)
Slot the attachment goes on, also used in descriptions so should be player readable
valid_parent_types
![code/datums/components/attachment.dm 7](git.png)
Unused so far, should probally handle it in the parent unless you have a specific reason