
Posts
307
Respect
89Add +1
Forum Rank
Perk Hacker
Primary Group
Scripter
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!
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
#include common_scripts\utility;
#include maps\_utility;
#include maps\_zombiemode_utility;
//=========================================================== \\
// ===================== Drawable Chalk ===================== \\
//=========================================================== \\
main()
{
trigger_off("place_weap", "targetname"); // Point where you can draw the weapon
trigger_off("mp40", "script_noteworthy"); // Trigger to buy the weapon
brush = getEnt ("weap_draw","targetname"); // Weapon chalk after drawing
brush hide();
trig = getEnt ("weap_chalk","targetname"); // Trigger to take the chalk
trig setHintString ("Press &&1 to pick up the chalk");
trig setCursorHint ("HINT_NOICON");
trig UseTriggerRequireLookAt();
trig waittill ("trigger");
trig Delete();
iprintln ("You take the weapon chalk"); // Message to show on display
brush = getEnt ("weap_paint","targetname"); // Delete the chalk after you take it
brush delete();
trigger_on("place_weap", "targetname");
trig = getEnt ("place_weap","targetname"); // Trigger where you place your weapon
trig setHintString ("Press &&1 to draw the weapon");
trig setCursorHint ("HINT_NOICON");
trig UseTriggerRequireLookAt();
trig waittill ("trigger");
trig Delete();
brush = getEnt ("interrogation_point","targetname"); // Disable the interrogation point
brush delete();
brush = getEnt ("weap_draw","targetname"); // Show new weapon chalk
brush show();
trigger_on("mp40", "script_noteworthy"); // Trigger to buy the weapon
}
//=========================================================== \\
// ===================== Drawable Chalk ===================== \\
//=========================================================== \\trigger_on("mp40", "script_noteworthy"); // Trigger to buy the weapon
trigger_off("mp40", "script_noteworthy"); // Trigger to buy the weaponmaps\_zombiemode::main();thread maps\weapon_chalk::main();maps\_zombiemode::main();
thread maps\weapon_chalk::main();Targetname - Weap_Chalk // Trigger where you take the chalkTargetname - Place_Weap // Trigger where you draw the weaponTargetname - Weap_Paint // Chalk to draw the weapon --> delete after you take itTargetname - Weap_Draw // New chalk after you draw the weaponTargetname - Interrogation_Point // Interrogation point where you draw the weapon --> delete after drawing





![]() | |
![]() | 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 |


![]() | 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. |
I have the anims for drawing the chalk as well as the chalk in the players hand, the chalk sounds, and the image for the chalk hud.
If you could make the script friendly to add these items in, I would certainly include this in my BO2 weapons pack if you would like.
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
Looks like that only works once.
I'd recommend making multiple functions that handle each step instead of having everything run from the main block.