From ec64f1036e1f11e3eeb89cd2450f302e562d237a Mon Sep 17 00:00:00 2001 From: Stinko <145304742+TheStinkern@users.noreply.github.com> Date: Tue, 6 May 2025 08:51:34 -0400 Subject: [PATCH] adding a little example on function value names --- docs/TemplateScript.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/TemplateScript.lua b/docs/TemplateScript.lua index ca7a804d..0f5298f8 100644 --- a/docs/TemplateScript.lua +++ b/docs/TemplateScript.lua @@ -1,5 +1,14 @@ -- Lua stuff - +--[[ +The function properties still works if you change the function names + For example: + function onEvent(name, v1, v2) + --value 1 is the camera flash length, value 2 is the flash color + if name == 'flashCamera' then + cameraFlash('camGame', v2, v1) + end + end +]]-- The functions still work, its just with different function names function onCreate() -- When the lua file is started/created, some variables weren't created yet end