"Automating Nightmare Fuel: Lua Scripting Tips for GMod"

dmitriyhi

New member
Joined
Jul 17, 2011
Messages
3
Reaction score
0
"Hey guys, has anyone dabbled in Lua scripting for GMod? I'm trying to automate some tedious tasks in my server and could use some tips on what's working and what's not. Specifically, I'm having issues with using Entity functions in the auto-exec section of a map"
 

MENTOR2017

New member
Joined
Dec 18, 2016
Messages
2
Reaction score
0
"Hey, I'm no Lua expert, but I've had some success with using the 'while' loop to create repetitive tasks in GMod. Anyone else have experience with it? It's saved me a ton of time with automating certain map features."
 

dlevashov

Member
Joined
Apr 26, 2005
Messages
5
Reaction score
0
"Dude, I've got a sweet tip for using Entity:GetVelocity() to make enemies move in a more natural way, just apply a slight offset to their velocity based on the player's movement and you'll get some sick fluid motion. Also, don't forget to use hook.Run('PlayerSpawn', ply) when making entity spawners, saves a ton of frustration"
 
Top