Thanks, finally got it working.
this doesn't work:
damage_trigger = GetEnt("pp_trigger", "targetname");
damage_trigger waittill("trigger", player);
weapon = player GetCurrentWeapon();
IPrintLnBold(weapon.name);
it only works when i change "player" to "user", like this:
damage_trigger =...
I wanna check if the player is using a specific weapon when they shoot a trigger_damage, but i can't find a way to get the weapon's name. This is my current function:
function ee_function()
{
level waittill("power_on");
damage_trigger = GetEnt("pp_trigger", "targetname");
wclip =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.