Calling a StaticShapeData Method on specific Object ID.
by Joseph Jonathan · in Torque Game Engine · 04/20/2009 (6:52 am) · 1 replies
How do I do this? I have stored the ObjectID of a specific object that I spawn, by script.
The object ID is stored as %client.player.C4. I try and take that object Id and run the
function C4Detpack::GetDetCode(%this, %clientnum)
by going %client.player.C4.GetDetCode(%client);
The problem is that the script does not recognize the GetDetCode command. I can run C4DetPack.GetDetCode(%client); and it works fine but It calls it on the last C4DetPack staticshape to be added.
Anyone have any advice for me?
~Joseph-Jonathan
The object ID is stored as %client.player.C4. I try and take that object Id and run the
function C4Detpack::GetDetCode(%this, %clientnum)
by going %client.player.C4.GetDetCode(%client);
The problem is that the script does not recognize the GetDetCode command. I can run C4DetPack.GetDetCode(%client); and it works fine but It calls it on the last C4DetPack staticshape to be added.
Anyone have any advice for me?
~Joseph-Jonathan
Torque Owner Joseph Jonathan