Trying to work with scripts
Posted: Thu May 12, 2016 1:09 am
Hi,
I've been using L3DT for a while now. But now I'm finding there are some specific needs that I need, so I want to create a few of my own scripts.
The documentation on scripts seems to be a little bit light, and I'm having trouble figure out how to use a certain function.
I'm trying to use 'SetPixel' to alter certain areas of my height map.
The fourth variable in this function requires an "hvar hValue" which I cannot figure out what it is.
I've tried just defining something, like "hvar FOO" but I get an error that it is an invalid value type (var was /0).
What type do I need? How do I set it / define it? I'm trying to set a pixel on a heightmap, so I also tried an int, but that also came back with an error.
How do I use this function? I've searched all of the example scripts that came with my install (garage games torque version) and also search the website and forums, but I can't find an example of this function being used.
Any help?
I've been using L3DT for a while now. But now I'm finding there are some specific needs that I need, so I want to create a few of my own scripts.
The documentation on scripts seems to be a little bit light, and I'm having trouble figure out how to use a certain function.
I'm trying to use 'SetPixel' to alter certain areas of my height map.
The fourth variable in this function requires an "hvar hValue" which I cannot figure out what it is.
I've tried just defining something, like "hvar FOO" but I get an error that it is an invalid value type (var was /0).
What type do I need? How do I set it / define it? I'm trying to set a pixel on a heightmap, so I also tried an int, but that also came back with an error.
How do I use this function? I've searched all of the example scripts that came with my install (garage games torque version) and also search the website and forums, but I can't find an example of this function being used.
Any help?