Posts
5
Respect
Forum Rank
Legless Crawler
Primary Group
Member
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!I have the script for a loop already from one of jbird632's videos but how do i link that with an actual electric trap in the game?
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
yea i just want to use the prefab but i cant find any vids on how to make them work, it just gives me a message that says: "not available"
#using scripts\zm\_zm_trap_electric;//Trap
#precache( "fx", "dlc0/factory/fx_elec_trap_factory" );
#precache( "fx", "maps/zombie/fx_zombie_light_glow_green" );
#precache( "fx", "maps/zombie/fx_zombie_light_glow_red" );
#precache( "fx", "fx_zombie_light_elec_room_on" );
#precache( "fx", "zombie/fx_elec_player_md_zmb" );
#precache( "fx", "zombie/fx_elec_player_sm_zmb" );
#precache( "fx", "zombie/fx_elec_player_torso_zmb" );
#precache( "fx", "electric/fx_elec_sparks_burst_sm_circuit_os" );
#precache( "fx", "electric/fx_elec_sparks_burst_sm_circuit_os" );
#precache( "fx", "zombie/fx_powerup_on_green_zmb" );function precache_fx()
{
level._effect["zapper"] = "dlc0/factory/fx_elec_trap_factory";
level._effect["zapper_light_ready"] = "maps/zombie/fx_zombie_light_glow_green";
level._effect["zapper_light_notready"] = "maps/zombie/fx_zombie_light_glow_red";
level._effect["elec_room_on"] = "fx_zombie_light_elec_room_on";
level._effect["elec_md"] = "zombie/fx_elec_player_md_zmb";
level._effect["elec_sm"] = "zombie/fx_elec_player_sm_zmb";
level._effect["elec_torso"] = "zombie/fx_elec_player_torso_zmb";
}precache_fx();#precache( "fx"#precache( "client_fx"scriptparsetree,scripts/zm/_zm_trap_electric.gsc

![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |