Scripted object not showing up
by Mike Rowley · in Torque Game Engine · 06/08/2008 (5:39 pm) · 1 replies
I copied Tim Astes Fan code to place an animated object in my game, but for some reason, the object isn't showing up when I place it. If I add it as a static object, it looks fine. It's only if I add it as a shape. (scripted)
Here's the script:
This is exactly as Tim Aste does it for his fan code, only, the fan works, and mine doesn't. :-/
I have checked the path, and it's correct. I'm lost as to why it wont show up.
Anyone have any ideas?
Here's the script:
datablock StaticShapeData(myLever)
{
category = "Misc";
shapeName = "~/data/shapes/lever/aLever.dts";
};
function myLever::onAdd(%this,%obj)
{
//Do nothing. Just add it for now. We call the lever action in fireUp.cs
}This is exactly as Tim Aste does it for his fan code, only, the fan works, and mine doesn't. :-/
I have checked the path, and it's correct. I'm lost as to why it wont show up.
Anyone have any ideas?
Torque Owner Mike Rowley
Mike Rowley
The problem, in case someone else has this problem....is I called the shape by calling "shapeName =" instead of "shapeFile =" as I should have.
Problem solved.