

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. |
![]() | Has released one or more maps to the UGX-Mods community. |
#include common_scripts\utility;
#include maps\_utility;
#include maps\_zombiemode_utility;
init() // keep in mind that the elevator starts in the up position in this script
{
level.elevator = getentarray("elevator", "targetname");
level. speed = 10; // how much time in secs you want it to take to get to the 200 units
level.height = -200; //how many units you want it to move
thread elevator_think();
}
elevator_think()
{
thread go_down();
wait 60;
thread go_up();
wait 60;
thread elevator_think();
}
go_down();
{
for( i = 0; i < level.elevator.size; i++ )
{
level.elevator[i] movez (level.height, level.speed);
}
}
go_up()
{
for( i = 0; i < level.elevator.size; i++ )
{
level.elevator movez (level.height - (level.height * 2), level.speed);
}
}![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has released one or more maps to the UGX-Mods community. |
targetname - perk
(untested)perk = GetEntArray ("perk", "targetname");
for( i = 0; i < perk.size; i++ )
{
perk[i] enablelinkto();
perk[i] linkto ("elevator");
}
.