Hello people, I wanted to make a Simpel timer that set’s a delay on the self:Use but i dont seem to get it work, so i need help from you guys. Here is the codes from the entity im making, if you need more information about the entity just ask.
Here is the code:
function ENT:Use(activator,caller) if (activator:Team() == TEAM_POLICE or TEAM_ACOP or TEAM_ASCOP or TEAM_SPOLICE or TEAM_GPOLICE or TEAM_CHIEF) then GAMEMODE:Notify(activator, 1, 4, "You recharged you're combine suit to maxium power.") activator:SetArmor(100) activator:SetHealth(200) self:EmitSound("npc/roller/mine/rmine_chirp_quest1.wav"); return end end
So can someone please tell me how to do it, i dont think Self:Use = false in on Gmod13 anymore or something because i tried that.
edit: My if(activator:Team() == dosent work either, all teams can use the entity, i hope someone can help.