
Posts
106
Respect
13Add +1
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
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!![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |

Also is there any way to make the door just disappear when the trigger is activated rather than move to a location it can't be seen.
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
You could put all the parts into an array and call delete(); on them.
trig_setup()
{
trig = getEnt("window_trigs", "targetname"); // the trigs
if(isdefined(trig) )
{
continue;
}
if(isdefined(trig.zombie_cost) )
{
zombie_cost = trig.zombie_cost; // option for defining a zombie_cost inside Radiant
}
else
{
zombie_cost = 1000;
}
trig sethintstring(&"Press F to Buy zappers[cost:+zombie_cost]");
trig setCursorHint( "HINT_NOICON" );
players = get_players();
trig waittill("trigger", players);
players maps\_zombiemode_score::minus_to_player_score( zombie_cost );
level thread remove_window();
}
remove_window()
{
parts = getEntarray("window_parts", "targetname"); // the parts of the window
if(isdefined(parts) )
{
continue; // make sure the parts actually exist
}
for(i = 0 ; i < parts.size; i++) //puts all the parts into an array
{
parts[i] delete(); //deletes the array
}
}![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
I apologize if this script doesn't work, i'm a bit tired and i'm not the best at scripting. Code SnippetPlaintexttrig_setup()
{
trig = getEnt("window_trigs", "targetname"); // the trigs
if(isdefined(trig) )
{
continue;
}
if(isdefined(trig.zombie_cost) )
{
zombie_cost = trig.zombie_cost; // option for defining a zombie_cost inside Radiant
}
else
{
zombie_cost = 1000;
}
trig sethintstring(&"Press F to Buy zappers[cost:+zombie_cost]");
trig setCursorHint( "HINT_NOICON" );
players = get_players();
trig waittill("trigger", players);
players maps\_zombiemode_score::minus_to_player_score( zombie_cost );
level thread remove_window();
}
remove_window()
{
parts = getEntarray("window_parts", "targetname"); // the parts of the window
if(isdefined(parts) )
{
continue; // make sure the parts actually exist
}
for(i = 0 ; i < parts.size; i++) //puts all the parts into an array
{
parts[i] delete(); //deletes the array
}
}