Author Topic: Console command to find all of the variables that belong to a class?(please D:)  (Read 566 times)

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: [Select]
cameraimage.lightType = "ConstantLight";
cameraimage.lightRadius = "12.5";
cameraimage.LightTime = "1000";
cameraimage.lightColor = "1 1 0 1";
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
« Last Edit: August 04, 2010, 03:13:55 PM by Reinforcements »

try:  cameraimage.dump();

this will tell you whats already there.  but to get a full list of whats possible - that I dont know.

You could use tree(); and find the datablock that way. It'll show you all the engine values separated from the dynamic values.

You could use tree(); and find the datablock that way. It'll show you all the engine values separated from the dynamic values.
great, thanks.



It says this when I try cameraimage.dump();

Code: [Select]
<input> (0): unable to find object: 'cameraimage' attempting to call function 'dump'
BackTrace: ->ConsoleEntry::eval