General > Developers Corner
A new Jail type: Cage
tssge:
So i was thinking of replacing the old jail's props and vectors with other models, but how can i make it a separate module, and what variables do i need to change ? This would be like a big cage, which would have some running room for minges, so they don't get bored, but they get their own little playground.
Notice: I'm a total noob to LUA, but i have done this before, i have converted ulx jail to assmod's jail.
JamminR:
Create a folder in addons (ex; addons/ulx_cage)
Create an info.txt in addons/ulx_cage
Create folders in your addons/ulx_cage of lua/ulx/modules
Place your my_cage_codename.lua file in the above mentioned modules.
Place your code in that lua file
You'll need to research on the Garry's mod lua wiki what names you'll need to change, specifically the function name and unique identifiers for the functions. You shouldn't have too difficult a time by looking at the original jail code.
tssge:
Ty, this will give me a start. Very hepfull :D I kinda like your forums ;)
JamminR:
Your welcome, and thank you. We're a bit partial to them ourselves. :D
MrPresident:
I don't like them... I think they yukky.. and JamminR's side of the forums smell funny!
Navigation
[0] Message Index
[#] Next page
Go to full version