Well I've not been able to get the TethysGame::SetTornado Function to work at all. I downloaded the SDK from the AmIMeYet Tutorial on getting the Visual C++ 2008 Express Functioning with it.
I tried to follow the Tutorial:
"
"
// Vortexes (Vortices?)
SCRIPT_API void Vortex()
{
TethysGame::SetTornado( TethysGame::GetRand(128)+31, TethysGame::GetRand(128)-1, TethysGame::GetRand(20)+10, TethysGame::GetRand(128)+31, TethysGame::GetRand(128)-1 );
}
"
However, when I attempted to build the OP2Script with those settings, it kicked back an error saying:
1>.\Main.cpp(459) : error C2660: 'TethysGame::SetTornado' : function does not take 5 arguments
Not being a total incompetent, I looked into the problem a little further. Apparently the game expects 6 defined variables in the function: All of the aforementioned ones and one more: "int boolNoIdea". I tried setting this to both 1 and 0, and both times the OP2Script build came through successfully, but when I attempted to execute the script in Outpost 2, It stops before the game starts and gives me the error:
"Couldn't resolve data reference Quakes in mission script"
The game still starts and seems to function normally after that, with the exception of there being no vortexes.
Can you possibly tell me what I'm doing wrong here?