API Functions/Sinvironment

Function
Sinvironment.Activate(show)
Sinvironment.AlphaModelTo(modelId, alpha, duration, [delay, smooth_type, finish?])
Sinvironment.BeginEditPattern(modelId, patterns, editingPatternIdx)
Sinvironment.BeginPickTattooPosition
Sinvironment.BeginPlaceTattoo(modelId, tattooDecalId, tattooType)
Sinvironment.CreateLight
Sinvironment.CreateModel(LOD, outlines = true) = model
Sinvironment.EnableMouseFocus(modelId, enabled)
Sinvironment.EndEditPattern(action) = with action 'accept', 'revert' or 'delete'
Sinvironment.EndPickTattooPosition
Sinvironment.EndPlaceTattoo(accept)
Sinvironment.FinishModelAlpha(modelId)
Sinvironment.FinishModelOrientation(modelId)
Sinvironment.FinishModelPosition(modelId)
Sinvironment.FinishModelScale(modelId)
Sinvironment.GetFixedCameraInfo
Sinvironment.GetLightAnchor(lightId) = anchor
Sinvironment.GetLoadingProgress
Sinvironment.GetManualCamera
Sinvironment.GetModelAlpha(modelId) = scale
Sinvironment.GetModelAnchor(modelId) = anchor
Sinvironment.GetModelBounds(modelId) = {x, y, z, width, depth, height}
Sinvironment.GetModelOrientation(modelId) = {axis,angle}
Sinvironment.GetModelPosition(modelId) = {x,y,z}
Sinvironment.GetModelScale(modelId) = scale
Sinvironment.GetModelShaderParamID(modelId, shaderParamName); -- CAN BE NIL = ShaderParamId
Sinvironment.GetNumFixedCamera
Sinvironment.GetOrnamentVisuals(ornamentsGroupId, battleframeId, race, sex)
Sinvironment.GetPatternTransform
Sinvironment.GetTattooMatrix
Sinvironment.IsActive() = true/false
Sinvironment.IsValidModel(modelId) = true/false
Sinvironment.LoadCharacterComponent(modelId, slot, componentId)
Sinvironment.LoadCharacterEyes(modelId, eyeRecordId)
Sinvironment.LoadCharacterOrnament(modelId, slot, ornamentsGroupId)
Sinvironment.LoadItemType(modelId, itemTypeId)
Sinvironment.LoadZone(ZoneName)
Sinvironment.OrientModelTo(modelId, {axis,angle}, duration, [delay, smooth_type, finish?])
Sinvironment.PlayModelAnimation(modelId, animationName)
Sinvironment.PositionModelTo(modelId, {x,y,z}, duration, [delay, smooth_type, finish?])
Sinvironment.PreviewVoice(voiceId) = success
Sinvironment.QueueModelAlpha(modelId, alpha, duration, [delay, smooth_type, finish?])
Sinvironment.QueueModelOrientation(modelId, {axis,angle}, duration, [delay, smooth_type, finish?])
Sinvironment.QueueModelPosition(modelId, {x,y,z}, duration, [delay, smooth_type, finish?])
Sinvironment.QueueModelScale(modelId, scale, duration, [delay, smooth_type, finish?])
Sinvironment.RemoveLight(lightId)
Sinvironment.RemoveModel(modelId)
Sinvironment.ResetCharacterEmissive
Sinvironment.ScaleModelTo(modelId, scale, duration, [delay, smooth_type, finish?])
Sinvironment.SetAnimatedCamera(model_id, hard_point_name)
Sinvironment.SetCharacterEmissive
Sinvironment.SetCharacterFrameLevel
Sinvironment.SetCharacterSex(modelId, sex)
Sinvironment.SetCharacterVisualOverride
Sinvironment.SetCharacterWarpaint(modelId, warpaint_table)
Sinvironment.SetFixedCameraID
Sinvironment.SetGradients(modelId, tattooGradientGroupIds)
Sinvironment.SetLightColor(lightId, r, g, b[, colorIntensity]
Sinvironment.SetLightFadeParams
Sinvironment.SetLightFovXYSoftness
Sinvironment.SetManualCamera(pos={x,y,z}, aimAt={x,y,z} [, transition_time=0, smooth_type=<'smooth', 'ease-in', 'ease-out', 'linear'>])
Sinvironment.SetModelAlpha(modelId, alpha)
Sinvironment.SetModelAnimationParameter
Sinvironment.SetModelLOD(modelId, LOD)
Sinvironment.SetModelMaterialOverride(modelId)
Sinvironment.SetModelOrientation(modelId, {axis,angle})
Sinvironment.SetModelPosition(modelId, {x,y,z})
Sinvironment.SetModelScale(modelId, scale)
Sinvironment.SetModelShaderParam(modelId, paramId, value)
Sinvironment.SetPatternKeyState
Sinvironment.SetPatternTransform
Sinvironment.SetPatterns(modelId, patternArray)
Sinvironment.SetTattooKeyState(key, pressed)
Sinvironment.SetTattooMatrix(matrix)
Sinvironment.SetTattooTextureOnSceneObject
Sinvironment.SetTattoos(modelId, tattooArray, tattooType)
Sinvironment.ShaderParamModelTo(modelId, paramId, value, duration, [delay, smooth_type, finish?])
Category:Addon_API