Game Development Community

Good Lord, Someone Shoot Me

by J L · in Combat Starter Kit · 12/12/2008 (3:35 pm) · 1 replies

Ok I used this for a direct connection just added it to my button
www.garagegames.com/mg/forums/result.thread.php?qt=81475

console log says this when i try to spawn into map
system/client/scripts/CommanderMapGui.cs (233): Unable to find object: 'ServerConnection' attempting to call function 'GetGhostIndex'

i tracked it down to here but I am a big clueless thing. This will probably be the last thing I ask for awhile...... I hope. I dont understand what its saying

// This function is called from C++ from within GuiCommanderHud.cc
function GuiCommanderHudIconClick(%clientObj)
{
commandToServer('GuiCommanderHudIconClick', ServerConnection.GetGhostIndex(%clientObj));

#1
12/15/2008 (9:02 am)
This is a client side script relying on a connection to the server named specifically ServerConnection.

The direct connection object needs to have that name, then you will be A.O.K. :)