Game Development Community

Toggling first/third person in network game

by Lee Latham · in Torque Game Engine · 02/29/2008 (9:35 pm) · 1 replies

This doesn't work for me. In combined server/client play, it's fine. But in network play, I get:

singularity/client/scripts/default.bind.cs (351): Unable to find object: 'ServerConnection' attempting to call function 'setFirstPerson'

I did some searching on the forums, and apparently all you need to do is set a client side variable $firstperson, but changing this doesn't seem to work when I try that manually--again, on a client. It just doesn't seem to do anything.

Any ideas?

Any input would be greatly appreciated!

#1
03/02/2008 (2:02 pm)
Turned out it was easy to fix. I just made a little server command function and called that instead:

function serverCmdfirstpersontoggle(%client,%firstperson)
{
%client.setFirstPerson (%firstperson);
}


Where I send either a 1 or a zero to toggle.

BTW I tried searching for this post and didn't find it. Is the forum database being updated?