Skip to content

llSetAgentEnvironment

Requires Experience
function ll.SetAgentEnvironment(agent_id: string, transition: number, Settings: {any}): number

Sets an agent's environmental values to the specified values. Must be used as part of an experience.

Parameters
agent_id (string)
Agent to receive new environment settings.
transition (number)
Number of seconds over which to apply new settings.
Settings ({any})
List of environment settings to replace for agent.

Add example usage here showing SLua/Luau syntax with ll.SetAgentEnvironment().

Add additional notes, caveats, or tips specific to using this function in SLua/Luau.