Page 1 of 1

Disable Skybox dynamically

Posted: Sun Jul 25, 2021 11:24 am
by Speed0x
Hey,
does anybody know if it is possible to toggle the 3D skybox ON/OFF for a specific player via sp? ( not the skyname/skytexture, but what's visible via sky_camera )

from what i looked into it is possible to change Playerproperties, but they can't toggle it on/off, only change local viewdata:

Syntax: Select all

PlayerEntity(1).set_property_vector("m_Local.m_skybox3d.origin",Vector(0,0,1))
PlayerEntity(1).set_property_int("m_Local.m_skybox3d.scale",2)
PlayerEntity(1).set_property_int("m_Local.m_skybox3d.area",0)

my assumption is that sky_camera gets compiled into the world and any on/off or position states aren't networked.
but perhaps somebody has an idea?

thanks