Skip to content

Instantly share code, notes, and snippets.

View Mobius1's full-sized avatar

Karl Mobius1

  • West Midlands, England
View GitHub Profile
@kapraran
kapraran / __init__.lua
Last active November 21, 2020 22:08
Play SoundAsset Venice unleashed
local winMusic = nil
Events:Subscribe('Level:Loaded', function(levelName, gameMode)
local winSoundAsset = ResourceManager:SearchForDataContainer('Sound/Music/MP_Music/MP_Music_Winning_Patch_01')
if winSoundAsset ~= nil then
local entityPos = LinearTransform()
entityPos.trans = Vec3(0.0, 0.0, 0.0)
print(entityPos)