Attachment

public static class Weapons.Attachment

CyberPsychosis    >    Weapons    >    Attachment

Summary

A base class for attachments, has events that will be called when actions like attacking or equiping the linked weapon are performed.

Type Name Description
virtual void OnAttatch Called when this attachment is attached
virtual void OnDetatch Called when this attachment is removed
virtual void OnEquipWeapon Called when the player switched to the attached weapon
virtual void onUnequipWeapon Called when the player switched from this weapon to another weapon
virtual void OnMain Called when the player uses the main action with this weapon
virtual void OnSecondary Called when the player uses the secondary action with this weapon