Posts
167
Respect
44Add +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!#include maps\_utility;
#include common_scripts\utility;
#include maps\_zombiemode_utility;
main()
{
level thread watch_player_first();
}
watch_player_first()
{
flag_wait( "all_players_connected" );
wait 1; //because some moments the doors will be faster open then you can see in game.
level thread do_doors_open();
}
do_doors_open()
{
door1 = getEnt("door1","targetname");
door2 = getEnt("door2","targetname");
door1 moveZ(-200, 1.5); //set here the amount of units that the door will move down | moveX moves on X units, moveY moves on Y units, moveZ moves on Z units
door2 moveZ(-200, 1.5);
wait 1.5;
door1 notsolid();
door2 notsolid();
wait 0.1;
door1 delete();
door2 delete();
}
//this is example code:
//for opening doors when the players are spawned.
targetnamedoor1targetnamedoor2![]() | Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms. |
I believe that he's making a mod for the actually Der Riese map, not another map using the der Riese scripts. So editing kvp's or anything in radiant for that matter. I think it's for his grief mod.
![]() | |
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
locations = [];
locations[0] = (x,y,z);
locations[1] = (x,y,z);
doors = getentarray(whatever)
for(doors---)
{
for(x = 0; x <= 1; x++)
{
if(doors[i] = locations[x])
activate
}
}
openDoors()
{
flag_wait( "all_players_connected" );
doors = getEntArray( "zombie_door", "targetname" );
for( i = 0; i < doors.size; i++ )
if( doors[i].script_flag == "enter_outside_east" || doors[i].script_flag == "enter_outside_west" )
doors[i] delete();
doors_east = getEntArray( "outside_east_door", "targetname" );
for( i = 0; i < doors_east.size; i++ )
doors_east[i] delete();
doors_west = getEntArray( "outside_west_door", "targetname" );
for( i = 0; i < doors_west.size; i++ )
doors_west[i] delete();
flag_set( "enter_outside_east" );
flag_set( "enter_outside_west" );
}