Garry's Mod

Garry's Mod

Easy Animation Tool
miningmaster99 2017 年 12 月 1 日 下午 10:48
Making it save.
Please add this feature, it shouldn't be that difficult either.


I'll even add an example on how to do it. it should really be this simple for you.
ENTITY-NAME - ANIMATION >> FILE.TXT
when open, get FILE.TXT
PARSE FILE.TXT INTO ENTITY $GRAB FILE.TXT :steamsad:
< >
正在显示第 1 - 11 条,共 11 条留言
76561198274242735 2017 年 12 月 18 日 上午 3:44 
So... how can I save anim? Do you know?
miningmaster99 2017 年 12 月 19 日 下午 6:42 
Yes using lua you could build a script that exports associated references to animations in a log file and load it later when a user clicks a code snippet also made in lua, e.g. a batch file which will run those associations.
76561198274242735 2017 年 12 月 21 日 上午 4:17 
It is a pity that I do not know how to use lua scripts. Are there any better ways?
miningmaster99 2017 年 12 月 23 日 下午 7:52 
Not without using direct source code that I can think of, but there are surely worse ways that don't involve lua... please don't use those ways.
miningmaster99 2017 年 12 月 23 日 下午 8:07 
I made some small code snippets to help you out.
-- this is a comment it'll be ignored by the compiler

-- this snippet below will read from an external file
local f = io.open(filename,r)
print(f:read("*a"))


-- this snippet below will write to a lua log external file
local filehandle = io.open(filename[, mode])
local filehandle = io.open("Log.txt", "w+")
filehandle:write(ObjName, "Obj: ", tostring(ObjAnim), "\n") --might be somewhat wrong.
filehandle:close()

-- this will select all of your objects
os.execute("nav_select_radius 3000") -- may not work properly without editing first

-- Good luck!
miningmaster99 2018 年 2 月 24 日 下午 10:14 
I'm sorry if I came off a little strong when I made this post I wasn't trying to sound like a ♥♥♥♥ it just kinda seemed that way, so really I'm sorry if that's how it felt but I truly would love to see this feature added.
miningmaster99 2018 年 3 月 28 日 下午 9:09 
if you need to replace strings of text use gsub, if you want to delete specific chars use sub.
did any of this help you?
A.L.A.S.T-G.I.R 2018 年 5 月 13 日 下午 2:07 
is there a way to program animations to a button?
miningmaster99 2018 年 5 月 28 日 下午 7:22 
does that relate to making it save?
miningmaster99 2019 年 12 月 27 日 下午 4:14 
its been like a year now and animations still can't be saved.
Omastar 2020 年 5 月 22 日 上午 3:18 
i seriously need to save these, or i can't make my new map X_X
< >
正在显示第 1 - 11 条,共 11 条留言
每页显示数: 1530 50