Okay so as most of you know, when you left click or right click using most stools (if not all) you will have an effect that draws a “laser” like beam to the area you clicked on. It also plays that annoying sound every time you do a stool action.
I recently downloaded NPC Control, and there is a stool that moves the npc to the area you selected on the world. Well moving the npc is fun but seeing that laser beam effect and hearing “BING” over and over gets really annoying. Is there a simple way to override the effects and sounds?
Code for the stool:
(This is just the right click function which moves the npc, I want to remove the default stool effects/sound from it)
[lua]function TOOL:RightClick( trace )
if SERVER then
if (selected_npcs_movement[self:GetOwner()] == nil) then selected_npcs_movement[self:GetOwner()] = {} end
if (trace.HitWorld && !trace.HitSky && SERVER) then
local action = SCHED_FORCED_GO
if (self:GetClientNumber(“dorun”) == 1) then action = SCHED_FORCED_GO_RUN end
for k, v in pairs(selected_npcs_movement[self:GetOwner()]) do
if (v != nil && v:IsValid() && v:IsNPC()) then
v:SetLastPosition( trace.HitPos )
v:SetSchedule( action )
end
end
end
end
return true
end[/lua]
Any help would be great thanks.