Disable Skybox dynamically

Please post any questions about developing your plugin here. Please use the search function before posting!
Speed0x
Member
Posts: 84
Joined: Sun Feb 05, 2017 4:55 pm

Disable Skybox dynamically

Postby Speed0x » Sun Jul 25, 2021 11:24 am

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

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 18 guests