

Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!#precache("fx", "pathtofx");
level._effect["whatevernameyouwant"] = "pathtofx";
#using scripts\zm\_zm;
#precache( "fx", "electric/fx_elec_sparks_directional_orange" );
function init()
{
level._effect["whatevernameyouwant"] = "electric/fx_elec_sparks_directional_orange";
trig = GetEnt("test_trigger", "targetname");
PlayFX(level._effect["whatevernameyouwant"], trig.origin);
}
Uh oh. I tried adding PlayFX to the spawning function of weapons and I got a G_Spawn no free entities error..
function randomweaponspawning()
{
// Whatever code you already had here
thread spawnFX(weapon);
}
function spawnFX(weapon)
{
PlayFX(level._effect["fxname"], weapon.origin);
}
weapon = GetWeapon("weapon you are using");