Notifications
Clear all

weapon varient

3 Posts
2 Users
0 Reactions
40 Views
Chris
(@chris)
Trusted Member
Joined: 4 months ago
Posts: 35
Topic starter   [#91]

hey guys 

so i was hoping i might get some advice on adding a hunting rifle with a single shot it doesn't need a reload animation i just need it to fire a single shot at a time and it can still use the rifle fire animation and reload

regards 

chris



   
Quote
Farshad
(@farshad)
DEVELOPER Admin
Joined: 7 months ago
Posts: 395
 

Posted by: @chris

hey guys 

so i was hoping i might get some advice on adding a hunting rifle with a single shot it doesn't need a reload animation i just need it to fire a single shot at a time and it can still use the rifle fire animation and reload

regards 

chris

Hey Chris,

If you want to modify the current Rifle so it has a limited number of shots and is no longer automatic, it's very simple.

Open the DT_WeaponData Data Table, find the Rifle entry, and uncheck the Automatic option. Then set the Ammo value to whatever you want, for example, 4.

After that, open BP_Rifle and change the Quantity value to 4 as well, so it matches the Ammo value you set in the Data Table.

That's it! The Rifle will now behave exactly as you requested.

we are also working on updating the weapon documentation soon, so adding more weapons will be much easier in V2.

 



   
ReplyQuote
Chris
(@chris)
Trusted Member
Joined: 4 months ago
Posts: 35
Topic starter  

@farshad thank you so much



   
ReplyQuote
Share: