Can't render!?
by Devboy · in Torque Game Engine · 02/07/2004 (2:00 pm) · 0 replies
Hi,
This is unit.cs:
The following is a spawning function for a unit (note $pPlayer is a global for the player obj):
The unit is spawned but I can't see it... it's there but won't render,
what did I miss?
This is unit.cs:
datablock UnitData(stdUnit)
{
shapeFile = "~/data/shapes/player/player.dts";
};The following is a spawning function for a unit (note $pPlayer is a global for the player obj):
function SpawnUnit()
{
%unit = new CUnit()
{
dataBlock = stdUnit;
};
echo(%unit);
%vPos = $pPlayer.getPosition();
echo(%vPos);
%unit.setPosition(%vPos);
MissionCleanup.add(%unit);
}The unit is spawned but I can't see it... it's there but won't render,
what did I miss?
About the author