Posts
13
Respect
Forum Rank
Legless Crawler
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!function whatever()
{
trig = GetEnt("whatever", "targetname");//keep targetname, but you would replace "whatever" with the name you assigned targetname to in radiant
trig SetCursorHint("HINT_NOICON");//removes the hand icon
trig SetHintString("Press and hold &&1 for blank");//you can put whatever you want in here and that's what will show in game
trig waittill ("trigger");
//do code
}
thread whatever();//you can put whatever name you want after thread, just make sure it matches the function name
#using scripts\zm\_zm_score;
function whatever()
{
cost = 100;//you can put whatever here
trig = GetEnt("whatever", "targetname");
trig SetCursorHint("HINT_NOICON");
trig SetHintString("Press and hold &&1 for blank");//you can put whatever you want in here and that's what will show in game
trig waittill ("trigger", player);
player zm_score::minus_to_player_score(cost);
}