ShowPerkVaultBoyOnHUD - Game

From the Fallout4 CreationKit Wiki
Revision as of 23:07, 12 May 2018 by imported>Qazaaq (Shouldn't be using double back-slashes, needs to be single slashes (*nix style paths))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Game Script

Plays the specified Perk VaultBoy Flash File and sound on the HUD menu.

Syntax

Function ShowPerkVaultBoyOnHUD(string aVaultBoySwf, Sound aSoundDescriptor = None) Native Global

Parameters

  • aVaultBoySwf: The interface path to a Flash File to play. Should include the .swf file extension.
  • aSoundDescriptor: the sound that goes along with the animation.
    • Default: None

Return Value

None

Examples

; We've triggered the Idiot Savant perk!
Game.ShowPerkVaultBoyOnHUD("Components/VaultBoys/Perks/PerkClip_1d245e.swf", perkSound)

Notes

  • SWFs used this way do not seem to support all the features that can be used elsewhere. For example, an SWF which has its frames made out of PNGs with alpha blending will display as a solid colour, even though the same SWF will display just fine in the PipBoy perk screen. One quick solution for this is to use the Trace Bitmap feature in Flash and generate a separate SWF for use in the HUD, but it will result in jagged edges.

See Also