(AGK version: Studio 0.50)
Submitted: 2019-04-09 20:52:17
/*
Unlike most functions, CreatePointLight does not return an id that can be assigned to a variable like so:
my_point_light = CreatePointLight(10.0, 10.0, 10.0, 1500.0, 205, 205, 255) // this will not work
*/

// in place of lightID, you must provide a unique integer value starting from 1 like so
CreatePointLight(light, 10.0, 10.0, 10.0,	1500.0, 205, 205, 255)
/*
However if you still wish to be able to reference these with some sort of a unique name, you can use variables
just make sure you do not have the several variables with the same value   
*/

light = 1
CreatePointLight(light, 10.0, 10.0, 10.0,	1500.0, 205, 205, 255)
CreatePointLight()
Help make AGK better by submitting an example for this command!
(All examples are subject to approval)
Login to post an example of your own.