Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik: Cliffs of Dover > FMB, Mission & Campaign builder Discussions

Reply
 
Thread Tools Display Modes
  #1  
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
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:52 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.