Jump to content

Recommended Posts

My mod uses the "SpawnPrefab" function to create certain effects.

===== Code example =====

local fx = GLOBAL.SpawnPrefab("spawn_fx_medium")
fx.Transform:SetPosition(x, y, z)

=======================

At this time, the sound of the effect is played automatically, but if multiple effects are called, the sound may overlap.
Please tell me how to separate voice in SpawnPrefab.

I am leaving a link and attachment for those who want to try the mod themselves or check the full code.
https://steamcommunity.com/sharedfiles/filedetails/?id=3417072441

modmain.lua

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...