




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. |
![]() UGX V.I.P. | |
![]() | Has shown excellence and experience in the area of custom mapping in the UGX-Mods community. |
![]() | 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 |
iprintln("what you want it to say");IPrintLn( "stuff?" );IPrintLnBold( "maybe?" );
![]() | Has released one or more maps to the UGX-Mods community. |
#include maps\_utility;
#include common_scripts\utility;
#include maps\_zombiemode_utility;
ray_steps();
{
trigger_one = getent("s_one", "targetname");
trigger_one sethinstring(" Press and hold &&1 for Ray Gun ");
trigger_one setCursorHInt( "HINT_NOICON" );
trigger waittill("trigger", players");
flag_set("stop_wait");
iprintln("onjective 1");
trigger delete();
}
{
disable_trigger();
trigger_two = getent("s_two", "targetname");
trigger_two sethinstring(" Press and hold &&1 for Ray Gun ");
trigger_two setCursorHInt( "HINT_NOICON" );
flag_wait("stop_wait");
enable_trigger();
trigger waittill("trigger", players");
flag_set("stop_wait_two");
iprintln("onjective 2");
trigger delete();
}![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() UGX V.I.P. | |
![]() | Has shown excellence and experience in the area of custom mapping in the UGX-Mods community. |
![]() | 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 |
trigger delete();trigger_one delete();trigger_one disable_trigger();
![]() | Has released one or more maps to the UGX-Mods community. |
You ended the function and started a new new one with out a function name/function call?
Lines 18 and 19
Also when you saidit should be Code SnippetPlaintexttrigger delete();(same with the second one) Code SnippetPlaintexttrigger_one delete();
When you tell the game to enable/disable a trigger you must put the trigger name that you want to enable/disable
example: Code SnippetPlaintexttrigger_one disable_trigger();
#include maps\_utility;
#include common_scripts\utility;
#include maps\_zombiemode_utility;
ray_steps();
{
trigger_one = getent("s_one", "targetname");
trigger_one sethinstring(" Press and hold &&1 for Ray Gun ");
trigger_one setCursorHInt( "HINT_NOICON" );
trigger waittill("trigger", players");
flag_set("stop_wait");
iprintln("onjective 1");
trigger_one delete();
}
ray_steps_two();
{
disable_trigger_two();
trigger_two = getent("s_two", "targetname");
trigger_two sethinstring(" Press and hold &&1 for Ray Gun ");
trigger_two setCursorHInt( "HINT_NOICON" );
flag_wait("stop_wait");
enable_trigger();
trigger waittill("trigger", players");
flag_set("stop_wait_two");
iprintln("onjective 2");
trigger delete();
}![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() UGX V.I.P. | |
![]() | Has shown excellence and experience in the area of custom mapping in the UGX-Mods community. |
![]() | 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 |
ray_steps();
![]() | Has released one or more maps to the UGX-Mods community. |
Didn't even notice that, you have a semicolon at the end of your function nameremove the semicolon Code SnippetPlaintextray_steps();
#include maps\_utility;
#include common_scripts\utility;
#include maps\_zombiemode_utility;
ray_steps()
{
trigger_one = getent("s_one", "targetname");
trigger_one sethinstring(" Press and hold &&1 for Ray Gun ");
trigger_one setCursorHInt( "HINT_NOICON" );
trigger_one waittill("trigger_one", players);
flag_set("stop_wait");
iprintln("onjective 1");
trigger_one delete();
}
ray_steps_two()
{
disable_trigger_two()
trigger_two = getent("s_two", "targetname");
trigger_two sethinstring(" Press and hold &&1 for Ray Gun ");
trigger_two setCursorHInt( "HINT_NOICON" );
flag_wait("stop_wait");
enable_trigger();
trigger_two waittill("trigger_two", players);
flag_set("stop_wait_two");
iprintln("onjective 2");
trigger_two delete();
}![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() UGX V.I.P. | |
![]() | Has shown excellence and experience in the area of custom mapping in the UGX-Mods community. |
![]() | 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 |
ray_steps()
{
trigger_one = getent("s_one", "targetname");
trigger_one sethinstring(" Press and hold &&1 for Ray Gun ");
trigger_one setCursorHInt( "HINT_NOICON" );
trigger_two = getent("s_two", "targetname");
trigger_two sethinstring(" Press and hold &&1 for Ray Gun ");
trigger_two setCursorHInt( "HINT_NOICON" );
trigger_two Hide();
trigger_two disable_trigger();
trigger_one waittill("trigger", player);
iprintln("onjective 1");
trigger_one delete();
trigger_two thread ray_steps_two();
}
ray_steps_two()
{
self Show();
self enable_trigger();
self waittill("trigger", player);
iprintln("onjective 2");
self delete();
}
![]() | Has released one or more maps to the UGX-Mods community. |
This was probably going to go back and forth for a while so I just edited the code:Like I said before, I prefer not using flags, so I instead called the second function from the first. Code SnippetPlaintextray_steps()
{
trigger_one = getent("s_one", "targetname");
trigger_one sethinstring(" Press and hold &&1 for Ray Gun ");
trigger_one setCursorHInt( "HINT_NOICON" );
trigger_two = getent("s_two", "targetname");
trigger_two sethinstring(" Press and hold &&1 for Ray Gun ");
trigger_two setCursorHInt( "HINT_NOICON" );
trigger_two Hide();
trigger_two disable_trigger();
trigger_one waittill("trigger", player);
iprintln("onjective 1");
trigger_one delete();
trigger_two thread ray_steps_two();
}
ray_steps_two()
{
self Show();
self enable_trigger();
self waittill("trigger", player);
iprintln("onjective 2");
self delete();
}
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() UGX V.I.P. | |
![]() | Has shown excellence and experience in the area of custom mapping in the UGX-Mods community. |
![]() | 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 |
#include maps\_utility;
#include common_scripts\utility;
#include maps\_zombiemode_utility;
![]() | Has released one or more maps to the UGX-Mods community. |
add this stuff back to the top of the code:Also how are you calling this code? Code SnippetPlaintext#include maps\_utility;
#include common_scripts\utility;
#include maps\_zombiemode_utility;
maps\_zombiemode::main();thread maps\ray::ray_steps();![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() UGX V.I.P. | |
![]() | Has shown excellence and experience in the area of custom mapping in the UGX-Mods community. |
![]() | 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 |
ray_steps()
{
trigger_one = getent("s_one", "targetname");
trigger_one sethintstring(" Press and hold &&1 for Ray Gun ");
trigger_one setCursorHInt( "HINT_NOICON" );
trigger_two = getent("s_two", "targetname");
trigger_two sethintstring(" Press and hold &&1 for Ray Gun ");
trigger_two setCursorHInt( "HINT_NOICON" );
trigger_two Hide();
trigger_two disable_trigger();
trigger_one waittill("trigger", player);
iprintln("onjective 1");
trigger_one delete();
trigger_two thread ray_steps_two();
}
ray_steps_two()
{
self Show();
self enable_trigger();
self waittill("trigger", player);
iprintln("onjective 2");
self delete();
}
![]() | Has released one or more maps to the UGX-Mods community. |
trigger_three = getent("trigger_three", "targetname");trigger_three hide();trigger_three show();![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() UGX V.I.P. | |
![]() | Has shown excellence and experience in the area of custom mapping in the UGX-Mods community. |
![]() | 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 |
ray_steps()
{
// Setting Up Triggers
trigger_one = getent("s_one", "targetname");
trigger_one sethintstring(" Press and hold &&1 for Ray Gun ");
trigger_one setCursorHInt( "HINT_NOICON" );
trigger_two = getent("s_two", "targetname");
trigger_two sethintstring(" Press and hold &&1 for Ray Gun ");
trigger_two setCursorHInt( "HINT_NOICON" );
trigger_three = getent("s_three", "targetname");
trigger_three sethintstring(" Press and hold &&1 for Ray Gun ");
trigger_three setCursorHInt( "HINT_NOICON" );
trigger_four = getent("s_four", "targetname");
trigger_four sethintstring(" Press and hold &&1 for Ray Gun ");
trigger_four setCursorHInt( "HINT_NOICON" );
// Hiding|Disabling Triggers
trigger_two Hide();
trigger_two disable_trigger();
trigger_three Hide();
trigger_three disable_trigger();
trigger_four Hide();
trigger_four disable_trigger();
// Trigger One
trigger_one waittill("trigger", player);
iprintln("onjective 1");
trigger_one delete();
// Enable Trigger Two
trigger_two Show();
trigger_two enable_trigger();
// Trigger Two
trigger_two waittill("trigger", player);
iprintln("onjective 2");
trigger_two delete();
// Enable Trigger Three
trigger_three Show();
trigger_three enable_trigger();
// Trigger Three
trigger_three waittill("trigger", player);
iprintln("onjective 2");
trigger_three delete();
// Enable Trigger Four
trigger_four Show();
trigger_four enable_trigger();
// Trigger Four
trigger_four waittill("trigger", player);
iprintln("onjective 2");
trigger_four delete();
}