• PVS with a camera system
    5 replies, posted
Hi, I have been making a CCTV system but I can't get my head round on how to intergrate PVS with it. Does anyone know how to set the PVS up for something like this? Thanks.
[IMG]http://wiki.garrysmod.com/favicon.ico[/IMG] [URL="http://wiki.garrysmod.com/page/Global/AddOriginToPVS"]AddOriginToPVS[/URL] Take a look at the example
There's a camera-related example on [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Global/AddOriginToPVS]AddOriginToPVS[/url] [editline]22nd August 2017[/editline] ninja'd
[QUOTE=MPan1;52600042]There's a camera-related example on [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Global/AddOriginToPVS]AddOriginToPVS[/url] [editline]22nd August 2017[/editline] ninja'd[/QUOTE] How can I only add a PVS for one player and not all players?
[QUOTE=TheVingard;52600715]How can I only add a PVS for one player and not all players?[/QUOTE] As far as I can tell, you should only call [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Global/AddOriginToPVS]AddOriginToPVS[/url] inside [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/SetupPlayerVisibility]GM:SetupPlayerVisibility[/url] as that's when the PVS is being built. So restrict it based on whatever player is passed into [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/SetupPlayerVisibility]GM:SetupPlayerVisibility[/url]
[url]https://github.com/raubana/AttackOfTheMimics/tree/master/gamemodes/attack_of_the_mimics/gamemode/camera_manager[/url]
Sorry, you need to Log In to post a reply to this thread.