Blockland Forums > Modification Help
Console command to find all of the variables that belong to a class?(please D:)
Pages: (1/1)
Reinforcements:
Hi, thanks for looking,
I'm having trouble with coding, I was looking at a "cam light" script that puts a light on the admin orb.
--- Code: ---cameraimage.lightType = "ConstantLight";
cameraimage.lightRadius = "12.5";
cameraimage.LightTime = "1000";
cameraimage.lightColor = "1 1 0 1";
--- End code ---
I was wondering where the maker of the script found out that you can set a light to the admin orb? What console command would I use to find other variables or more about the "admin orb class"?
thanks,
Reinforcements
Red_Guy:
try: cameraimage.dump();
this will tell you whats already there. but to get a full list of whats possible - that I dont know.
Chrono:
You could use tree(); and find the datablock that way. It'll show you all the engine values separated from the dynamic values.
Reinforcements:
--- Quote from: Chrono on August 04, 2010, 03:50:41 PM ---You could use tree(); and find the datablock that way. It'll show you all the engine values separated from the dynamic values.
--- End quote ---
great, thanks.
It says this when I try cameraimage.dump();
--- Code: ---<input> (0): unable to find object: 'cameraimage' attempting to call function 'dump'
BackTrace: ->ConsoleEntry::eval
--- End code ---
Pages: (1/1)