

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!secret_door_trigger()
{
trigger = getEnt("Secret_Trigger, door6");
while(1)
{
self waittill("Secret_Trigger", player);
door_open(door6, player);
player iprintInbold("You hear an unlocking sound.");
self delete();
}
}
![]() | 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. |
Self is whatever you threaded this function "on"
If nothing then self is level
Also "secret_trigger" is not a default notify
You prob just want "trigger" or might be "damage"
trigger = getEnt("Secret_Trigger, door6");
trigger = getEnt("value", "key");
trigger = getEnt("Secret_Trigger", "targetname");
trigger waittill("trigger", player);
thread door_open(trigger, player);
player iprintInbold("You hear an unlocking sound.");
trigger waittill("moved"); //This is what I was talking about above, you are gonna
//notify this from your door_open function and then it will delete the trigger after the move is done
trigger delete();
secret_door_trigger()
{
trigger = getEnt("Secret_Trigger", "targetname");
while(1)
{
trigger waittill("trigger", player);
thread door_open(trigger);
player iprintInbold("You hear an unlocking sound.");
trigger waittill("moved");
trigger delete();
break; //You are gonna break out of the function because you wont be using it anymore since you're deleting
//the trigger
}
}
door_open(trigger)
{
//Now gotta get the door so
door = getEnt("input_a_name_from_radiant", "targetname"); //Make the door a script brushmodel and give it these kvps
door moveTo(); //Put in the x,y,z coords of where you want it to go
trigger notify("moved"); //This is how you call the waittill by notifying it
}
![]() | Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
is_player_valid( who )
if(IsSubStr(self.classname, "damage")
{
//i know it seems weird to make an empty if statement, but you have to ensure that the player wont loose its points if its a damage trigger
}
else if( who.score >= self.zombie_cost )
{
// set the score
who maps\_zombiemode_score::minus_to_player_score( self.zombie_cost );
if( isDefined( level.achievement_notify_func ) )
{
level [[ level.achievement_notify_func ]]( "DLC3_ZOMBIE_ALL_DOORS" );
}
bbPrint( "zombie_uses: playername %s playerscore %d round %d cost %d name %s x %f y %f z %f type door", who.playername, who.score, level.round_number, self.zombie_cost, self.target, self.origin );
}
secret_door_trigger()
{
trigger = getEnt("Secret_Trigger", "targetname");
while(1)
{
trigger waittill("trigger", player);
door_open(trigger);
player iprintlnbold("You hear an unlocking sound.");
trigger waittill("moved");
trigger delete();
break;
}
}
door_open(trigger)
{
door = getEnt("door6", "targetname"); //Make the door a script brushmodel and give it these kvps
door moveTo(-704, 896, 0); //Put in the x,y,z coords of where you want it to go
trigger notify("moved"); //This is how you call the waittill by notifying it
}
![]() | Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
![]() | Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
![]() | 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. |
secret_door_trigger()
{
trigger = GetEnt( "Secret_Trigger", "targetname" );
trigger waittill( "trigger", player );
trigger Delete();
door = GetEnt( "door6", "targetname" );
door MoveTo( ( -704, 896, 0 ), 1, 0.1, 0.1 );
player IPrintLnBold( "You hear an unlocking sound." );
}
![]() | Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |