How Do I Spawn Planes And Helicopters In My Gamemode? - GMOD
2 replies, posted
Hi, before we start let me just say one thing... I literally started learning lua yesterday!
I've already made my gamemode, with the shared.lua file and everything, but can anyone tell me how to add in a feature where, right when you spawn in (on one certain map) if a few planes could be on the ground and a few helicopters could be in the air, flying on hover mode (im using the wac aircraft addon).
Then after about 5 seconds the players are divided into two teams, the "planes" and the "helicopters" and the people on "H" team would spawn in the flying helicopters (in the back, not in the seats) and if the player on the "P" team would spawn near a plane?
Heres my shared.lua file, can anyone write all of this into that file, or the gamemode file (old info file) and just give me something to copy and paste?
BTW: im using the map gm_flatgrass_airport
GM.Name = "Planes VS Helicopters"
GM.Author = "FastKillerGood"
GM.Email = "fastkillergood@gmail.com"
GM.Website = "http://www.youtube.com/user/FastKillerGood"
DeriveGamemode( "base" )
function GM:Initialize()
-- Do stuff
end
Edit: please tell me if this is in the wrong forum, so I can post it somewhere else :)
So, i've been thinking, and its going to be hard to spawn the helicopters in mid air and stuff, so can someone just tell me how to have the plane and helicopters spawn the same way and such.
There's a forum dedicated to gmod development: [url]http://facepunch.com/forumdisplay.php?f=65[/url]
Thanks for signing up to Facepunch, but see the post above me - this is for general threads, not GMOD related stuff
Sorry, you need to Log In to post a reply to this thread.