[Implemented] AttachNodeObject() - #PB_Node_Light

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
STARGÅTE
Addict
Addict
Posts: 2227
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

[Implemented] AttachNodeObject() - #PB_Node_Light

Post by STARGÅTE »

Please make it possible that we can add light to a node and define LightID()

- Light: use LightID() as 'ObjectID' und #PB_Node_Light als 'Typ'.
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
User avatar
Comtois
Addict
Addict
Posts: 1431
Joined: Tue Aug 19, 2003 11:36 am
Location: Doubs - France

Re: AttachNodeObject() - #PB_Node_Light

Post by Comtois »

You can already attach a light to a node, using an existing constant, for example # PB_Node_Entity.

Code: Select all

AttachNodeObject(0, LightID(0), #PB_Node_Entity)
But it's true that the documentation is incomplete and lacks a constant for the lights.
Please correct my english
http://purebasic.developpez.com/
Post Reply