
Posts
125
Respect
50Add +1
Forum Rank
Pack-a-Puncher
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!tesla_coils()
{
level.teslas_picked = 0;
coil1_trig = getEnt("tesla_coil1","targetname");
coil2_trig = getEnt("tesla_coil2","targetname");
coil3_trig = getEnt("tesla_coil3","targetname");
thread item_pickup(coil1_trig);
thread item_pickup(coil2_trig);
thread item_pickup(coil3_trig);
}
item_pickup(trigger)
{
user = undefined;
trigger _setHintString("");
trigger SetCursorHint( "HINT_NOICON" );
flag_wait("upgraded_magic");
trigger _setHintString("Press and Hold &&1 to Pick Up Item");
trigger SetCursorHint( "HINT_NOICON" );
model = Spawn( "script_model", trigger.origin );
model setmodel( "zombie_zapper_tesla_coil" );
playfxontag (level._effect["powerup_on"], model, "tag_origin");
trigger waittill("trigger", user);
trigger delete();
user playsound("powerup_grabbed");
model delete();
level.teslas_picked = level.teslas_picked + 1;
thread upgrade_ready();
}
![]() | 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. |
You need to precache models prior to zombiemode::main
And need to load the fx and check its in mod.csv or some other csv used in your map/mod
Use serous script reference, and treyarchs zombiemode_perks.gsc for examples
![]() | 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. |
It was the model not being precached. Tested with a precached model and worked great!
Thanks for your help!
need to load the fx in the same place - unless it's already working which means it's already being loaded some where ( prob in dlc3_code.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. |
Cool
That's loaded in one of the other gscs
Just for reference
Variable = loadfx( "path_to_fx/fxname" );
Just incase you ever use a fx that isn't already loaded