Skip to content

Commit 8068031

Browse files
committed
fix code template typos
in quick setups for command part
1 parent 67c55e0 commit 8068031

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lua/pac3/editor/client/parts.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3655,7 +3655,7 @@ function pace.AddQuickSetupsToPartMenu(menu, obj)
36553655
lua_menu:AddOption("Chat decoder -> command proxy", function()
36563656
Derma_StringRequest("create chat decoder", "please input a name to use for the decoder.\ne.g. you will say \"value=5", "", function(str)
36573657
obj:SetUseLua(true) obj:SetString([[local strs = string.Split(LocalPlayer().pac_say_event.str, "=") RunConsoleCommand("pac_proxy", "]] .. str .. [[", tonumber(strs[2]))]])
3658-
local say = pac.CreatePart("event") say:SetEvent("say") say:SetInvert(true) say:SetArguments(str .. "=0.5") say:SetAffectChildrenOnly(true)
3658+
local say = pac.CreatePart("event") say:SetEvent("say") say:SetInvert(true) say:SetArguments(str .. "=@@0.5") say:SetAffectChildrenOnly(true)
36593659
local timerx = pac.CreatePart("event") timerx:SetEvent("timerx") timerx:SetInvert(false) timerx:SetArguments("0.2@@1@@0") timerx:SetAffectChildrenOnly(true)
36603660
say:SetParent(obj.Parent) timerx:SetParent(say) obj:SetParent(say)
36613661
local proxy = pac.CreatePart("proxy") proxy:SetExpression("command(\"" .. str .. "\")")
@@ -3664,12 +3664,12 @@ function pace.AddQuickSetupsToPartMenu(menu, obj)
36643664
end):SetIcon("icon16/comment.png")
36653665
lua_menu:AddOption("random command (e.g. trigger random animations)", function()
36663666
Derma_StringRequest("create random command", "please input a name for the event series\nyou should probably already have a series of command events like animation1, animation2, animation3 etc", "", function(str)
3667-
obj:SetUseLua(true) obj:SetString([[local num = math.floor(math.random()*5) RunConsoleCommand("pac_event", "]] .. str .. [[" num]])
3667+
obj:SetUseLua(true) obj:SetString([[local num = math.floor(math.random()*5) RunConsoleCommand("pac_event", "]] .. str .. [[", num)]])
36683668
end)
36693669
end):SetIcon("icon16/award_star_gold_1.png")
36703670
lua_menu:AddOption("random command (pac_proxy)", function()
36713671
Derma_StringRequest("create random command", "please input a name for the proxy command", "", function(str)
3672-
obj:SetUseLua(true) obj:SetString([[local num = math.random()*100 RunConsoleCommand("pac_proxy", "]] .. str .. [[" num]])
3672+
obj:SetUseLua(true) obj:SetString([[local num = math.random()*100 RunConsoleCommand("pac_proxy", "]] .. str .. [[", num)]])
36733673
end)
36743674
end):SetIcon("icon16/calculator.png")
36753675
lua_menu:AddOption("X-Ray hook (halos)", function()

0 commit comments

Comments
 (0)