View Single Post
  #3  
Old 09-13-2011, 09:29 PM
II./JG1_Krupinski II./JG1_Krupinski is offline
Approved Member
 
Join Date: Oct 2007
Posts: 86
Default

Haven't tried on dedi server yet. I assumed that it's working in non-dedicated that it would in a dedicated. Boy this will be a let down if it doesn't work on dedicated server.

As far as what code I'm using, your's looks like mine, except that I get a reference to the "player" by looping through the aircraft.Places() and finding the first "place" that isn't null - that being the player or "a" player.

Code:
for (int i = 0; i < aircraft.Places(); i++)
{
	if (aircraft.Player(i) != null)
	{
		// TODO: Account for more than one player in an aircraft
		player = aircraft.Player(i);
		break;
	}
}

if (player != null)
{
	// do player specific code
	//blah, blah. blah
}
Reply With Quote