I'm with a team making custom holdtypes for our SWEPs. We know how to do everything EXCEPT define custom ACT_ enums. Is this a thing that can be done? Do we do it in the QC and it just magically appears, or is there a Lua function for it, or can we just do `ACT_BLAH = 2028`, or is it impossible?
Thanks
https://steamcommunity.com/sharedfiles/filedetails/?id=757604550
https://steamcommunity.com/sharedfiles/filedetails/?id=919270611&searchtext=attack+system
Probably a good starting point.
You can't
@code_gs what did you mean there?
He probably meant that you can literally define enum variables in Lua (for example, just writing ACT_MYACT_WHATEVER = 9992 in a shared file). I don't think this works for playing animations. Give it a shot though, I might be wrong!
I was referring to PLAYERANIMEVENT enums.
For custom ACT enums to be recognised with models, they have to be registered with the ACT stringtable. I requested Lua access here: https://github.com/Facepunch/garrysmod-requests/issues/950
Sorry, you need to Log In to post a reply to this thread.