Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(5 edits)

Don't worry about picking my brain at all, I'm always happy to help you succeed with the asset! You are doing great.

1. The Easy Way to Lock the Slide Back

You don't need complex blueprint math to lock a pistol slide back when empty.

Right-click your pistol's empty/reload animation and click Create Anim Montage.

Open that Montage, find the exact frame where the slide is pushed all the way back, and pause it.

Right-click the timeline at that frame and click New Anim Section (call it 'HoldOpen').

Set the montage loop settings so it stays stuck on that 'HoldOpen' section. Now, just tell your blueprint to play this section whenever your ammo variable hits 0!


2. The Golden Rule for Quick UE5 Retargeting

When you open the IK Retargeter asset, make sure your two character models look like they are standing in the exact same pose (usually an A-Pose or a T-Pose) before you click export.

If one character has wider shoulders or lower arms, use the Edit Retarget Pose button to manually move their arms until they match perfectly. This stops the weapons from looking twisted when you swap them!

Maybe you can provide me the screenshot of your issues so I can help you solve it

Retargeting i have somewhat got down, it helps having pre made ik rigs lol. I think i forgot to set the slide lock pose montage to loop haha that would do it. 

This other ALS shooter BP id like to work with is a bit more complex, but seems to define weapon locations based on body slots. Ammo doesnt seem to be split into types on the front end. It has two main variables for the ammo: mag ammo (can change this to ref the ammo in mag var) and bag ammo which seems to correspond with ammo count on player itself. I dont need the weapons to display in slots, as long as I can get them working. I wouldn't know where to start translating any enums either so I may have to be less ambitious here. 

(1 edit)

Dude, you are making phenomenal progress! Seriously, getting the inventory and widgets moving like a breeze on a brand new framework as a beginner is a massive achievement. Don't sweat the complex parts of ALS it intimidates experienced developers all the time because it is packed with dense systems.

Let's keep things super simple so you don't burn out or get lost in code:

1. Match the Ammo Variables

Since your ALS project already has a Mag Ammo and Bag Ammo variable, you just need to feed my inventory numbers straight into them. Think of it like connecting a water pipe:

Find the blueprint code where ALS fires a weapon.

Right before it subtracts a bullet, use a Set node to make ALS's Mag Ammo equal my asset's Ammo In Mag variable.

When your character triggers a reload, have the ALS Bag Ammo variable check the total bullet count inside my asset's Inventory Component.

Don't worry about splitting ammo types right now. Treat all ammo as generic until you get the gun shooting.


2. Bypass the ALS Body Slots (The Simple Attach)

You mentioned you don't care about seeing weapons holstered on the back or hip. That saves you a massive headache.

 Instead of messing with the complex ALS slot system, just use the Attach Actor to Component node inside your character blueprint when you equip a weapon.

Force-attach the gun directly to the hand socket you adjusted earlier. This completely skips the ALS body slot logic and forces the gun into the hand.


3. The Slide Loop Fix

You hit the nail on the head! Once you open that montage, create your section for the slide being pulled back, and check that Loop box, it will stay locked back perfectly when your ammo hits zero.


Since you are working with ALS socket attachment, seeing it done visually helps a ton. Check out this excellent video guide: 

It shows exactly how to copy, paste, and align hand sockets between a weapon system and the ALS skeleton.