WBP_LPSP_Spawn
Introduction
The Spawn Widget Blueprint (WBP_LPSP_Spawn) is the blueprint in the asset that represents the entire spawning menu that players see when they first load into a game. It contains all the spawning buttons, and the loadout menus are accessed from here, among other things.
If you seek to access the WBP_LPSP_Spawn, it is conveniently located at the following path: InfimaGames/LowPolyShooterPack/Core/Widgets/WBP_LPSP_Spawn.
Functions
Set Starting Item:
This function sets the item with which the player will start the game, changing the icon and keeping track of all necessary data. It is usually called by the button the player presses when selecting the item icon, which in our case is a list entry bp.
Get Equipped Item:
This function returns the equipped item’s name as text.
Set Attachments Muzzle:
This function sets the equipped item's muzzle to the corresponding muzzle based on the name we pass.
Get Equipped Muzzle:
This function returns the equipped item’s muzzle name as text.
Set Override Attachments:
This function sets whether or not to override the attachments for the first entry shown.
Save Spawn Settings:
This function saves the current spawn settings to be loaded later.
Try Load Spawn Settings:
This function attempts to load the saved spawn settings.
Editable Variables
Starting Item:
This text represents the name of the equipped item. It is very important, as this is what we use to actually spawn the player with it.
Override Attachments:
This variable determines whether to override the attachments for the first entry shown. It's a bit of a strange way to do things, but it works fine.
Loadout Data:
This variable stores a reference to the Loadout Data Asset.
Last updated
Was this helpful?
