Modme Forums
Menu:

Fx spawn when triggers are shot

Game Modding | Call of Duty: Black Ops 3 | Scripting


ModmeBot:

Thread By: maxman5050
I'm using the following script for a shootable easter egg https://pastebin.com/iru9hwX8

When all these triggers are shot, I want the "fizz_ball_glow.efx" effect to spawn at a certain point. How would i Go about doing this


ModmeBot:

Reply By: Crateer

maxman5050
I'm using the following script for a shootable easter egg https://pastebin.com/iru9hwX8 When all these triggers are shot, I want the "fizz_ball_glow.efx" effect to spawn at a certain point. How would i Go about doing this

Create the FX where you want it to spawn in Radiant.
Give it a Targetname and in the script - you can then
ee_fx = GetEnt( "ee_fx", "targetname");
ee_fx Hide();

After the EE has been completed you can "unhide" the FX so it shows where you placed it by:
ee_fx Show();

Haven't tested it, but let me know if it works =)