

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!void <player> PlayHitMarker( <sound name>, <damage state>, <perk feedback>, <is dead> ) //parameters
[MANDATORY] <sound name> The name of the sound or hash //the name of the sound you want to play
[OPTIONAL] <damage state> How damaged the victim is //damage state defines the size of the hitmarker (you cant make it 9999 to make the hitmarker gigantic)
[OPTIONAL] <perk feedback> If the victim had any perks active that modified the hit marker //you get other hitmarkers when you deal explosive damage and the target has flakjacket
[OPTIONAL] <is dead> If the victim has died from this hit marker and needs a red flash //makes the hitmarker red
CATEGORY: Player
CLIENT/SERVER: Server
SUMMARY: Plays a hit marker event
EXAMPLE: self PlayHitMarker( "evt_squad_activate", 3, "flakjacket" )
function example()
{
triggers = GetEntArray(ents, "targetname"); //replace 'ents' with the array name of all triggers that should play a hitmarker
foreach(trigger in triggers)
{
trigger waittill("trigger", player);
player PlayHitMarker("mpl_hit_alert"); //mpl_hit_alert is the standart hitmarker sound
}
}
//if you want to do this for only one trigger
function example()
{
triggers = GetEnt(name, "targetname"); //replace 'name' with the name of the trigger that should play a hitmarker
trigger waittill("trigger", player);
player PlayHitMarker("mpl_hit_alert"); //mpl_hit_alert is the standart hitmarker sound
}