Spray pattern
A scriptable object that represents the spray pattern of the firearm.
Last updated
A scriptable object that represents the spray pattern of the firearm.
Last updated
A spray pattern is preset data for the firearm that is incredibly useful for your player's muscle memory. As they play more, they remember spray patterns, making your game easier to master. You can start by creating a spray pattern from the create asset menu. The create asset menu can be accested by right clicking in the project window, then Akila, then FPS Framework, then Weapons, then Spray Pattern. This is what you should see when it's created:
Give your spray pattern a name.
This is the insepector of the spray pattern:
Amount
How much power this spray pattern has. The higher the value the wider the spray is.
Random
If true, the spray pattern will be completely random.
Vertical
A curve defining the spray vertically depending on how much ammo there's in the mag.
Horizontal
A curve defining the spray horizontally depending on how much ammo there's in the mag.
To use this spray pattern, assgin it into the field "Spray Pattern" or "Aim Spray Pattern" in the firearm data of your gun.