Can i somehow add a spawnscript into a TTT map addon?
4 replies, posted
I just want to add a spawnscript for weapons and players to my addon, but normal spawnscript are .txt files and can't be uploaded to the workshop.
So how can i add these spawns in a lua file ?
PS:
Spawnscript like this:
\GarrysMod\garrysmod\data\ttt\maps
ttt_playerspawn 493.308197 558.081970 0.529268 -0.068 -0.000 0.068
You'll just have to provide a download link.
[editline]28th June 2016[/editline]
Otherwise, the only alternative is to spawn each weapon in the position via Lua.
[QUOTE=code_gs;50610318]You'll just have to provide a download link.
[editline]28th June 2016[/editline]
Otherwise, the only alternative is to spawn each weapon in the position via Lua.[/QUOTE]
I see your point but i've already provided a dl link for the txt but people are still too stupid.
How would i do this i lua?
Here's the default implementation: [url]https://github.com/garrynewman/garrysmod/blob/6ce29f647d9bab4bc52477a10bb81b8838191d5e/garrysmod/gamemodes/terrortown/gamemode/ent_replace.lua#L523[/url]
Also, next time post here. [url]https://facepunch.com/forums/65[/url]
Sorry, you need to Log In to post a reply to this thread.