• RP Jobs
    4 replies, posted
Been working on a barebones RP gamemode, and I was wondering which way I should approach jobs. I was thinking about maybe just having an array of jobs and then having a currentJob variable of sorts, and changing that when you hit a button, But I am sort of new to lua so not sure what the best way to approach this is. I am not a complete noob, I have been programming for years, just in other languages. Thanks, Dusk
[QUOTE=Duskling;34991030]Been working on a barebones RP gamemode, and I was wondering which way I should approach jobs. I was thinking about maybe just having an array of jobs and then having a currentJob variable of sorts, and changing that when you hit a button, But I am sort of new to lua so not sure what the best way to approach this is. I am not a complete noob, I have been programming for years, just in other languages. Thanks, Dusk[/QUOTE] You would create jobs in a shared.lua also called teams and you dont have to sign your post your name is beside it. :P
Could work. Just make sure you use separate variables for each player. It's kind of a strange way of doing it though, I would probably just use teams. After all, they're built into Gmod specifically for this kind of thing.
Thanks for the tip, teams seem to work good for me!
[QUOTE=Duskling;34992816]Thanks for the tip, teams seem to work good for me![/QUOTE] No problem
Sorry, you need to Log In to post a reply to this thread.