#how do i start my map in third person?

1 messages · Page 1 of 1 (latest)

tight crown
#

sort of, but by default there is no 'official' thirdperson integration in gmod. there is only the default source-engine implementation which is a cheat command

#

so you would have to run three console commands

sv_cheats 1 (host)
thirdperson (client)
sv_cheats 0 (host)

there are two entities for running serverside and clientside console commands, but they're disabled in garry'smod for security reasons; so this will, in theory, only work in singleplayer now:

create a logic_auto
create a lua_run entity
using the logic_auto, pass three inputs to the lua_run:

onmapspawn -> (your lua_run name) -> RunPassedCode -> With a parameter override of: RunConsoleCommand('sv_cheats', '1')
onmapspawn -> (your lua_run name) -> RunPassedCode -> With a parameter override of: RunConsoleCommand('thirdperson')
onmapspawn -> (your lua_run name) -> RunPassedCode -> With a parameter override of: RunConsoleCommand('sv_cheats', '0')

and that should work when the client is also the host (singleplayer)

tight crown
#

you may also want to separate each command, in the order I have given them, by a delay of 0.1 seconds each

#

just to ensure they fire in the right order

#

so the first with a delay of 0, the second with 0.1, and the third with 0.2

#

that said, this is a very janky solution; you may be better off finding an addon you can package with your map or mark as required content that you can either trigger via lua_run or otherwise

fierce estuary
#

doesnt seem to be working

#

seems like i'll just scrap the idea

#

ah wait