Garry's Mod

Garry's Mod

Easy Animation Tool
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:
< >
Showing 1-11 of 11 comments
76561198274242735 18 Dec, 2017 @ 3:44am 
So... how can I save anim? Do you know?
miningmaster99 19 Dec, 2017 @ 6:42pm 
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 21 Dec, 2017 @ 4:17am 
It is a pity that I do not know how to use lua scripts. Are there any better ways?
miningmaster99 23 Dec, 2017 @ 7:52pm 
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 23 Dec, 2017 @ 8:07pm 
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 24 Feb, 2018 @ 10:14pm 
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 28 Mar, 2018 @ 9:09pm 
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 13 May, 2018 @ 2:07pm 
is there a way to program animations to a button?
miningmaster99 28 May, 2018 @ 7:22pm 
does that relate to making it save?
miningmaster99 27 Dec, 2019 @ 4:14pm 
its been like a year now and animations still can't be saved.
Omastar 22 May, 2020 @ 3:18am 
i seriously need to save these, or i can't make my new map X_X
< >
Showing 1-11 of 11 comments
Per page: 1530 50