Interfacing with engine
by Robert S. · in Torque Game Engine · 10/06/2005 (7:36 am) · 2 replies
Hi,
Can you please tell me how I can retrieve, in the C++ code, the value of a member variable of a certain AIPlayer object which was declared in script.
For example:
%player = new AiPlayer()
{
datablock = %varDataBlock;
};
%player.anyVariable = "Test text";
My goal is to retrieve the value of "anyVariable" in the AIPlayer class.
Thank you.
Can you please tell me how I can retrieve, in the C++ code, the value of a member variable of a certain AIPlayer object which was declared in script.
For example:
%player = new AiPlayer()
{
datablock = %varDataBlock;
};
%player.anyVariable = "Test text";
My goal is to retrieve the value of "anyVariable" in the AIPlayer class.
Thank you.
About the author
Creator of VisitorVille.com
Torque 3D Owner Stephen Zepp