feat: add initial People Playground mod development kit

This commit is contained in:
2026-01-06 06:35:51 +03:00
parent b89c805060
commit 566791ce62
1095 changed files with 40280 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
URL: https://wiki.studiominus.nl/snippets/createLight.html
Title: People Playground Modding - Creating a light
==================================================
Creating a light
This code snippet shows how to create a light that interacts with the lighting system.
//creating a light object with myself as a parent, a red colour, a radius of 5 units, and a brightness of 1 (default)
var glow = ModAPI.CreateLight(transform, Color.red, 5, 1);
//change the colour to whatever the hell
glow.Color = Color.yellow;
//blind the player
glow.Brightness = 1500;
//devour the world
glow.Radius = 1000;
//it's a component of a new child GameObject so you can set its local position
glow.transform.localPosition = new Vector3(0,0,0);