Modding, Mission Design, and Coding > The Scripting Workshop

How to tell if pilot is single or mulitplayer

(1/2) > >>

chief1983:
So if I'm in the Main Menu state, is there a reliable way to tell if the currently loaded pilot is a single or multiplayer pilot?

jr2:
Hover over the Ready Room, I think the help text is different.

chief1983:
I meant in relation to scripting...since this is the Scripting forum.

WMCoolmon:
No. I actually disabled the players stuff in HEAD, because it's set up very weird. The same storage space is used in Freespace 2 to store local players/pilots, and remote players/pilots, and is loaded when the game starts or a multiplayer game is joined. Or so it looked to me. I'm not very familiar with that code.

In 3.6.9, you might be able to do it by checking the player's current campaign field.

Wanderer:
Just a small note... If you are planning on using scripting on MP keep in mind that ALL SCRIPTS are evaluated locally - so given the MP lag the scripts will give different results for separate players. So things like distance checks etc. are essentially useless.

Navigation

[0] Message Index

[#] Next page

Go to full version