Game Development Community

How would I call TS code from C++?

by Tetragrammaton · in Torque 3D Professional · 05/06/2014 (10:57 am) · 2 replies

Asking that for a while. I'm currently doing something with trace(bool); and wanted to know how to call through C++.

Some help would be nice.

Thanks in advance,
Cajetan.

#1
05/06/2014 (12:55 pm)
Use Con::evaluate(), Con::evaluatef(), Con::execute() or Con::executef(). They're in Engine/console/console.cpp if you want to dip into the code and see how to use them....
#2
05/06/2014 (1:00 pm)
Oh, right. Yeah. I was thinking of another method currently, as I was making a DLL (Injection) for it and did it by hand. Oh god, I'm so stupid.

Well, thank you anyway, Richard.

Greetings,
Cajetan.