Game Development Community

How to updating the client?

by Liu Yi · in Torque Game Engine · 01/30/2007 (1:41 am) · 1 replies

I defined a boolean flag 'deployed' in the Vechile class, and 2 console methods to set and get the flag:

void Vehicle::setDeploy(bool d)
{
deployed=d;
}

int Vehicle::getDeploy()
{
return deployed;
}


ConsoleMethod( Vehicle, getDeploy, bool, 2, 2, "")
{
return object->getDeploy();
}

ConsoleMethod( Vehicle, setDeploy, void, 3, 3, "(bool d)")
{
object->setDeploy( dAtob(argv[2]));
}

when I use these 2 console in the game script, I notice that when i change the flag by using "setDeploy" at the server side, the flag is not changed at the client side.

Someone told me that I need to update the client in the above engine code. Can anyone tell me how to do this?

#1
01/31/2007 (7:31 pm)
Still no one answer my question.

Does anyone know how to solve this problem?

Thanks in advance.